PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • XML functions and threads
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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
XMLSource is string
Res is boolean
DocXML is xmlDocument


// Load the XML content
DocXML = XMLOpen("example.xml", fromFichier)

// Modify the XML document
...

// Retrieve and format the XML document
XMLSource = XMLDoc.BuildString()

// Save the XML file
fSaveText("ModifiedExample.xml", XMLSource)
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.
Caution: The encoding of result corresponds to the ..Encoding property of xmlDocument variable. If no encoding is specified, the XML document will be encoded in UTF8 by default.
<Creation options>: Optional Integer constant
Combination of following values:
XMLDocumentDefault
(default value)
Generates the XML code with a header and from the root.
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. See Managing threads for more details.
Component : wd250xml.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment