xml-to-json() #

string xml-to-json(nodeset node)

xml-to-json() translates the given node into its JSON representation. The structure of the node must be in Object XML Notation. xml-to-json expects exactly one single node as parameter. In cases of errors, an empty string is returned.