|
|
|
|
XMLOpenReader (Function) In french: XMLOuvreLecteur Creates a reader used to read an XML document without loading it in memory. MyNode is xmlNode MyNode..Type = XMLTag MyNode..Name = "MyNode" MyNode..Text = "Text of node"  Reader is xmlReader = XMLOpenReader("file.xml")  FOR EACH Reader IN-DEPTH Trace(Reader.Type) END  VariableReset(Reader) // Close file  Reader2 is xmlReader = XMLOpenReader("file.xml")  FOR EACH x OF Reader2 IF Reader2.Type = XMLReaderStartTag _OR_ Reader2.Type = XMLReaderEmptyElementTag THEN IF Reader2.Name = "config" THEN FOR EACH y OF x Trace(x.Name) END END END END  VariableReset(Reader2) // Close file
Syntax
<Result> = XMLOpenReader(<File>)
<Result>: xmlReader variable xmlReader variable used to read an XML document without loading it in memory. <File>: Character string Path of the file containing the XML document to read. Remarks - This function is used to read large XML files. To read small XML files, use XMLOpen.
- Close the reader: When used with the xmlReader variable, the VariableReset function closes the XML file (see example).
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|