ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / XML file functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Creates a reader used to read an XML document without loading it in memory.
MonNoeud is xmlNode
MonNoeud..Type = XMLTag
MonNoeud..Name = "MonNoeud"
MonNoeud..Text = "Le texte du noeud"

Lecteur is xmlReader = XMLOpenReader("fichier.xml")

FOR EACH Lecteur EN PROFONDEUR
	Trace(Lecteur.Type)
END

VariableReset(Lecteur) // Fermeture du fichier

Lecteur2 is xmlReader = XMLOpenReader("fichier.xml")

FOR EACH x OF Lecteur2
	IF Lecteur2.Type = XMLReaderStartTag _OR_ Lecteur2.Type = XMLReaderEmptyElementTag THEN
		IF Lecteur2.Name = "config" THEN
			FOR EACH y OF x
				Trace(x.Nom)
			END
		END
	END
END

VariableReset(Lecteur2) // Fermeture du fichier
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.
  • Closing the player: The VariableReset function applied to the xmlReader type variable closes the XML file being manipulated (see example).
Business / UI classification: Business Logic
Component: wd300xml.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/10/2025

Send a report | Local help