Make sure you are using a valid v1.0 stylesheet. 1 = Unable to create XML object 2 = Unable to create XSL object 3 = Unable to parse XML. Return Value(s): Success - A string containing JSON Failure - "" and sets to a non-zero value. $sXsl - A string containing the XSL stylesheet used for transform. = _Xml2Json($sXml, $sXsl = Default) Author: TheXman () Description: Transform XML string to JSON Parameter(s): $sXml - A string containing a valid XML document. It consists of 2 functions, _Xml2Json() and _XmlFile2Json(). So I created this Xml2Json UDF to tranform XML to JSON. The tools & UDF's used to parse and process JSON are much more flexible and powerful than the ones for XML.
0 Comments
Leave a Reply. |