AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos XML
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
// Load the RSS stream of the last articles published on pcsoft.fr.windev
Stream is xmlDocument 
Stream = XMLOpen("http://forum.pcsoft.fr/rss.awp?groupid=pcsoft.fr.windev&v=2", fromURL)
IF ErrorOccurred = True THEN
Error("Unable to open the RSS feed. Check your Internet connection.")
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 whitespace characters (space, tab, CR).. 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
Versión mínima requerida
  • Versión 15
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 07/03/2024

Señalar un error o enviar una sugerencia | Ayuda local