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".
Can someone please put me out of my misery and explain what I'm doing wrong or how I should be traversing the document to get at nodes as regular web methods I'd use seem incompatible.
A quick couple lines of code to kick me off would be great or an explanation of how to get to a workable XML Document Object without using "ActiveXObject" functionality would be awesome. :cool:
Thanks in advance,
Neil