Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
xml.Parser.fromString({text : xmlString}) seems to not make XML?
I'm sure I'm doing something wrong...
Whereas this WAS simple with a single call in 1.0 of nlapiStringToXML(xmlString), which would give you a nice XML object to work with...
2.0 seems to have you doing a seemingly longer version with xml.Parser.fromString({text : xmlString})...
Except - whereas the 1.0 API makes a nice object... the 2.0 flavor gives me nothing to work with.. {"name":"#document","type":"DOCUMENT_NODE","value":null,"textContent":null}
I know the XML is good...
So - how does one, in 2.0, take a string, make it XML and then "get data from it"... I can't believe it's that difficult, so again, I'm sure I'm doing something wrong...
1