PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Reading the name of current element
  • Saving the modifications in the XML file
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
XMLRename (Function)
In french: XMLRenomme
Renames the current element (tag or attribute) in an XML document.
Syntax
<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 find out the error details, use ErrorInfo.
<XML document>: Character string with quotes
Name of the XML document where the modification will be performed.
<New element name>: Character string with quotes
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.
Remarks

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 XMLBuildString. 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 fSaveText.
Example:
// Once the XML document was modified
XMLSource = XMLBuildString("XMLDoc")
// Save the XML file
fSaveText("ModifiedExample.xml", XMLSource)
Business / UI classification : Business Logic
Component : wd250xml.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment