XML routines
List of Global Functions
XMLError - The error string from the xml parser. It should be used when the agent did not return content. A reset happens before a new XML parsing starts.
XMLToYCPFile - Read XML file into YCP
XMLToYCPString - Read XML string into YCP
YCPToXMLFile - YCPToXMLFile() Write YCP data into formated XML file
xmlCreateDoc - define a new doc type with custom settings, if not defined, global settings will be used.
List of Global Variables
The error string from the xml parser. It should be used when the agent did not return content. A reset happens before a new XML parsing starts.
Return value
string - parser error
Read XML file into YCP
Function parameters
string xmlFile
Return value
map<string, any> - Map with YCP data
Read XML string into YCP
Function parameters
string xmlString
Return value
map<string, any> - Map with YCP data
YCPToXMLFile() Write YCP data into formated XML file
Function parameters
symbol docType
map contents
string outputPath
Return value
boolean - true on sucess