ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / XML file functions
  • XML functions and threads
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<xmlDocument variable>.BuildString (Function)
In french: <Variable xmlDocument>.ConstruitChaîne
Retrieves and formats the content of an XML document.
Example
Reports and Queries
SourceXML is string
Res is boolean
DocXML is xmlDocument


// Chargement du contenu XML
DocXML = XMLOpen("exemple.xml", fromFile)

// Modification du document XML
...

// Récupération et mise en forme du document XML
SourceXML = DocXML.BuildString()

// Enregistrement du fichier XML
fSaveText("ExampleModifié.xml", SourceXML)
Syntax

Retrieving the source of an XML document found in an xmlDocument variable Hide the details

<Result> = <XML document>.BuildString([<Creation options>])
<Result>: Character string
Formatted XML document. This result can be:
  • handled in memory.
  • ...
<XML document>: Control name
xmlDocument variable containing the XML document to format.
Warning Result encoding corresponds to property Encoding property of variable xmlDocument. If no encoding is specified, the XML document will be encoded in UTF-8.
<Creation options>: Optional Integer constant
Combination of following values:
XMLDocumentDefault
(default value)
Generates the XML code with a header and from the root.
XMLFormattingGenerates XML code with formatting (indentation and carriage returns).
XMLNoHeaderGenerates the XML code without header.
Remarks

XML functions and threads

If your application uses threads, the XML document is shared between all these threads. For more details on threads, see Managing threads.
Component: wd300xml.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/26/2024

Send a report | Local help