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.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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