Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Manipultating XML document?
Guys,
I am creating an XML doc from an nlapiRequestURL body.
like this :
var response = nlapiRequestURL(url, soapMess, headers, 'POST');
var rbody = response.body;
var xmls = nlapiStringToXML(rbody);
Using the debugger I can see I have :
xmls = {document} and nodes below it such:
nodeName = {string} #document
nodeType = {number} 9
localName = null
firstChild = {element}
nodeName = {string} soapenv:Envelope
nodeType = {number} 1
localName = {string} Envelope
[...]
So far so good.
I am unable to use methods on xmls such as xmls.nodeName
or
xmls.getElementsByTagName('Envelope'); (freaky return from this is : "org.apache.xerces.dom.DeepNodeListImpl@218e4130"!)
or using nlapiSelectValue.
I strongly suspect the xml document obj created by the nlapi call is anything but "standard".