XML file processing
This library is used for XML file processing and XML tree building.
Neither a multibyte-character set nor a document type description <!DOCTYPE .....> are handled in the current version. For using this library, it is required to specify the file xml.ge (from Lib subfolder) with include command.
Variables of either the xml and the xmlitem type (an XML tree item) are used for processing XML documents.
An XML tree item can be of two types: a text item and a tag item.
There are several types of tag items:
- tag item that contains other items <tag ...>.....</tag>;
- tag item that contains no other items <tag .../>;
- tag item of processing instruction <?tag ...?>.
A tag item may contain attributes.
The sequence of operations for processing an XML document:
Operations
Methods
Methods of XML tree items
OperationsOperations defined for the variable of xml type are listed below. The second column contains possible statements where typename is a variable or an expression of the specified type.
Operation | Syntax | Return type | Comments |
foreach | The option of using in the foreach statement. Defining an optional variable of the xmltags type is required. The foreach statement is used for variables of the xmlitem type and goes through all child tag items of the current tag.xmltags xtags
...
foreach xmlitem cur, curtag.tags( xtags )
{
...
} |
Methods
Methods of XML tree items

 |

Copyright © 2004-2006 Gentee Inc. All rights reserved.
 |