ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / XML file functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Converts a character string in XML format into a standard character string.
Example
// Convertir une chaîne de caractères au format XML
// en une chaîne de caractères au format ANSI
sChaîneAnsi is string
sChaîneAnsi = XMLToText("X est > que Y")
// sChaîneAnsi contient "X est > que Y"
WINDEVWEBDEV - Server codeReports and QueriesJavaUser code (UMC)PHP
MonDoc is string
MonDoc = fLoadText("exemple.xml")
MonRésultat is string
i is int = 1
MonRésultat = XMLExtractString(MonDoc, "NOM", i)
WHILE MonRésultat <> ""
	Trace(MonRésultat)
	i = i + 1
	MonRésultat = XMLToText(XMLExtractString(MonDoc, "NOM", i))
END
// Dans la trace, on doit voir apparaître :
// navets
// échalote
Syntax
<Result> = XMLToText(<String to convert>)
<Result>: Character string
Character string. The following reserved characters are automatically replaced:
  • &amp;amp; becomes &amp;
  • &amp;apos; becomes '
  • &amp;gt; becomes >
  • &amp;lt; becomes <
  • &amp;quot; becomes "
<String to convert>: Character string
Character string in XML format to convert.
Remarks
To extract a section of XML code found in an XML tag, use XMLExtractString.
Business / UI classification: Business Logic
Component: wd300xml.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help