Seeking Adive: I've got a client that I'm buildin...
# suitescript
d
Seeking Adive: I've got a client that I'm building a XML file (export). The funky thing is, it needs to be formatted. (ie. tags to be indented). Not a raw, single line xml file). Any ideas (or libraries) I could use to format the resulting xml file like this?
m
I use
xml2json
for manipulating XML documents using JavaScript objects and outputting XML when I'm done, and
xml-formatter
to format the document with indentation and whatnot. I only use them to update
deploy.xml
, so I'm not sure how well they'll work server-side in SuiteScript.
d
Thanks @Mike Robbins... its likely it has a dependency on
XMLDocument
which is only available in a browser