AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos XML
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Loads an XML document from a file, a URL or a string in an xmlDocument variable.
Ejemplo
// Load the RSS feed 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
Sintaxis
<Result> = XMLOpen(<Document source> [, <Source type> [, <Option>]])
<Result>: xmlDocument variable
Variable of type xmlDocument containing the result of loading the XML document and reading it.
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
XML code reading mode:
XMLKeepEmptyTextNodeKeeps text nodes containing only whitespace characters (space, tab, CR).. This constant is required if the XMLVerifySignature function is to be used.

AndroidWidget Android Java This parameter is not available.
Observaciones
UTF-8 encoding is used by default if no encoding is specified in the XML document.
Clasificación Lógica de negocio / UI: Lógica de negocio
Componente: wd300xml.dll
Versión mínima requerida
  • Versión 15
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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