Google Search diml.org
[ french ]

Table des matières
 Latest News
 An application of the  WCT_NEWS  component
>> Top of page

Data Injection Markup Language Reference

XML Data Sources


Module : XML Extension Group : Extraction

Syntaxe 1

<%xml
    source="filename"
    scope="variable_scope"
    select="XML_selector"
    alias="alias_prefix"
    [noHtml]
    [noXml]
    [noText]
    [nobr]
    [flat] %>

This statement uses an XML file as a data and template source. all or part of the XML elements and attributes will be selectable and will be translated to the DIML variable space.

source : The XML source file.

scope : An output scope for the generated variables. This will allow dataset discrimination when multiple calls to the same XML file are performed within the same source. Variable names will be formed concatenating this scope to the XML node chained identifer.

select : A selecting expression that filters out which elements or attributes should generate variables in the DIML scope. This expression looks like an XSL selector, and has similar behaviour.

alias : If an alias is defined, DIML ouput variables are canonized into a single DIML output array.

noHtml : This switch inhibits output of the Html representation for extracted data. Only "CDATA" and "XML subtree" represntation will be output, unless selecting expression is more strict.

noXml : This switch inhibits output of "XML subtree" representation of the extracted variables. Only "CDATA" and "Html" representation will be output, unless selecting expression is more strict.

noText : This switch inhibits output of "CDATA" representation of the extracted variables. Only "Html" and "XML subtree" represntations will be output, unless selecting expression is more strict.

nobr : This switch avoids end of lines being converted into Html <BR> sequence when outputting an "Html" represnetation of a variable.

flat : This switch flattens the node chain identifier filtering out the selectors value. This should be used ONLY if selectors are known to have unique solution.


previous summary next


All material is copyleft V.G. FREMAUX (EISTI France) 1999 to 2003 except explicitly mentioned