XML Module
Last updated
Was this helpful?
Last updated
Was this helpful?
Simple xml/json conversion tool.
Import
Parses xml into a json object.
Arguments
XML
(String) an xml input string
Returns
JSON Object
Converts a json object to an xml document.
Arguments
json
(Object) a json input object.
options
(Object)
rootElement
(String: root)
prettyPrint
(Boolean: false)
indent
(String: \t)
newline
(String: \n)
version
(String: 1.0)
encoding
(String: UTF-8)
standalone
(Boolean: true)
doctype
(String: null)
headless
(Boolean: false)
Returns
XML Document String
toJS
Example
toJS
Example Response
toXml
Example
toXml
Example Response