ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / XML file functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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
Component: wd290xml.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/12/2023

Send a report | Local help