PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
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.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Java This function is now available for Java applications.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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

Loading an XML document from a file or from a URL Hide the details

<Result> = XMLOpen(<Document source> [, <Type of source>])
<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 (with quotes)
Corresponds to:
  • the path of the file containing the XML document (for a file source).
  • the URL of XML document (for a URL source).
<Type of source>: Optional Integer constant
Type of source to use:
fromFile<Document source> is the path of XML file.
fromURL<Document source> is the URL of an XML file.

Loading an XML document contained in a string Hide the details

<Result> = XMLOpen(<XML document> , <fromString>)
<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.
<XML document>: Character string (with quotes)
XML code to load.
<fromString>: Integer constant
Type of source to use:
fromString<XML document> is a string containing XML code.
Remarks
The UTF-8 encoding is used by default if no encoding is specified in the XML document.
Business / UI classification: Business Logic
Component: wd270xml.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment