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
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
Loads an XML document from a file, a URL or a string in an xmlDocument variable.
Example
// Chargement du flux RSS des derniers articles publiés sur le forum pcsoft.fr.windev
Flux is xmlDocument 
Flux = XMLOpen("http://forum.pcsoft.fr/rss.awp?groupid=pcsoft.fr.windev&v=2", fromURL)
IF ErrorOccurred = True THEN
Error("Impossible d'ouvrir le flux RSS. Vérifiez votre connexion Internet.")
END
Syntax
<Result> = XMLOpen(<Document source> [, <Source type> [, <Option>]])
<Result>: xmlDocument variable
xmlDocument variable containing the result of the loading and study of XML document.
The ErrorOccurred variable is set to True if an error occurred.
<Document source>: Character string
Corresponds to:
  • the path of the file containing the XML document (for a file source).
  • the URL of the XML document (for a URL source).
  • a string containing the XML code to be loaded. In this case, you need to specify the fromString constant for the <Source type> parameter.
<Source type>: Optional Integer constant
Source type to be used:
fromFile<Document source> is the path of the XML file.
fromString<Document source> is a string containing XML code. This constant is required if the <Document source> parameter directly contains the XML code.
fromURL<Document source> is the URL of an XML file.

If this parameter is not specified, the path and the URL of the XML file will be automatically identified.
<Option>: Optional Integer constant
New in version 2024
XML code analysis mode:
XMLKeepEmptyTextNodeKeeps text nodes containing only blank characters (space, tab, RC).. This constant is required if the XMLVerifySignature function is to be used..

AndroidAndroid Widget Java This parameter is not available.
Remarks
UTF-8 encoding is used by default if no encoding is specified in the XML document.
Business / UI classification: Business Logic
Component: wd290xml.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/01/2024

Send a report | Local help