<@U97T0ER26> I knew the contents of the XML, just ...
# suitescript
k
@Eric B I knew the contents of the XML, just not whether
xml.Parser.fromString
was working correctly, which was why I was trying to
log
the result of
xml.Parser.fromString
, to see if it looked like what I'd expect it to look like with all the relevant nodes etc, but instead was only getting something like
{"name":"#document","type":"DOCUMENT_NODE","value":null,"textContent":null}
. It turns out that
log
doesn't display the XML result nicely as @JohnnyC mentioned, but my use of
xml.Parser.fromString
was indeed working correctly and I could use
xml.XPath.select()
etc to get at the info I wanted