Help / WLanguage / WLanguage functions / Standard functions / XML file management functions
  • Reading the name of current element
  • Saving the modifications in the XML file
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
XMLRename (Function)
In french: XMLRenomme
Renames the current element (tag or attribute) in an XML document.
<Result> = XMLRename(<XML document> , <New element name>)
<Result>: Boolean
  • True if the modification is performed,
  • False otherwise (the ErrorOccurred variable is set to True). To get more details on the error, use ErrorInfo.
<XML document>: Character string
Name of the XML document where the modification will be performed.
<New element name>: Character string
New name of current element:
  • name of tag if the current element is a tag.
  • name of attribute if the current element is an attribute.

Reading the name of current element

To read the name of the current element, use XMLElementName.

Saving the modifications in the XML file

To save the modifications performed in an XML file, you must:
  1. Use the XMLBuildString function. This function retrieves and formats the content of an XML document.
  2. Save the character string generated by XMLBuildString in an XML file. To do so, use the fSaveText function.
// Once the XML document was modified
XMLSource = XMLBuildString("XMLDoc")
// Save the XML file
fSaveText("ModifiedExample.xml", XMLSource)
Business / UI classification: Business Logic
Component: wd280xml.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment

Last update: 06/16/2022

Send a report | Local help