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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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