Function Xml2Var() Foundation
Converts an XML-encoded character string back to the original value.
Xml2Var( <cXmlFragment> ) --> xValue
The function Xml2Var() returns the XML-encoded value in a native Xbase++ data type.
Xml2Var() is the inverse function of Var2Xml(). An XML-encoded character string is converted back to the original value with Xml2Var(). The XML string may also be created manually or modified after being created by Var2Xml(), but it must follow the syntax used by Var2Xml().
Restoring character strings: Characters specified using numeric character references in decimal or hexadecimal notation (eg. & or ä) are not supported, and will not be converted back to their original character value. Xml2Var() will also remove all leading white-space, tab and carriage return/linefeed characters. All other characters, including trailing white-space characters, will be kept and returned in the converted string.
Restoring Objects: The classname attribute of the XML start tag specifies the class name of the object. If the class specified in the <object> tag's classname attribute isn't available at runtime, Xml2Var() will instead create a DataObject() with the named instance variables.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.