this `var xmlDocument = xml.Parser.fromString({` ...
# suitescript
j
this
var xmlDocument = xml.Parser.fromString({
text: XMLStringInteractions
})
doesn't seem to want to work - it just generates a document with no content the XML string is definitely valid too. is there something im missing? just comes back like this:
{"name":"#document","type":"DOCUMENT_NODE","value":null,"textContent":null}
b
what would you expect it to print like?
j
I would expect to see the XML contents in the value or textContent fields I suppose.
b
nope
only information from the document node
j
huh, okay then. so then its probably actually generating the document correctly.
How do you go about assigning a name to this file then?
b
its not a file
j
ah, forgive my ignorance I'm new to netsuite and suitescript and trying to just figure it all out. thanks for your help!
b
you are looking for N/file if you wish to create a file