PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • XML functions and threads
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
<xmlDocument variable>.BuildString (Function)
In french: <Variable xmlDocument>.ConstruitChaîne
Retrieves and formats the content of an XML document.
WINDEVWEBDEV - Server codeWINDEV Mobile The corresponding string can be saved as an XML file using the fSaveText function. Reminder: fSaveText creates a text file in ANSI format. To create a text file in Unicode format, use the functions fOpen / fWrite.
AndroidAndroid Widget Java In the final XML document, the list of attributes is sorted in alphabetical order.
AndroidAndroid Widget Java If the XML document to format contains the declaration of an internal DTD, the description of this DTD will not be transcribed in the final XML document.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android 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.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android 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
WINDEVWEBDEV - Server codeReports and QueriesAndroidAndroid Widget JavaUser code (UMC)PHPAjax
SourceXML est une chaîne
Res est un booléen
DocXML est un xmlDocument
 
 
// Chargement du contenu XML
DocXML = XMLOuvre("exemple.xml", depuisFichier)
 
// Modification du document XML
...
 
// Récupération et mise en forme du document XML
SourceXML = DocXML.ConstruitChaîne()
 
// Enregistrement du fichier XML
fSauveTexte("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.
  • WINDEVWEBDEV - Server codeWINDEV Mobile saved in a file in XML format by fSaveText.
  • ...
<XML document>: Control name
xmlDocument variable containing the XML document to format.
Caution: The encoding of the result corresponds to the Property Encoding of the Variable xmlDocument. 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.
XMLFormattingGenerates XML code with formatting (indentation and carriage returns).
AndroidAndroid Widget Java This constant is not available.
Versions 27 and later
AndroidAndroid Widget This constant is now available.
New in version 27
AndroidAndroid Widget This constant is now available.
AndroidAndroid Widget This constant is now available.
Java This constant is not available.
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 Gestion des threads.
Component: wd270xml.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment