Anyone know why its returning the jsobject bit and not the attribute?
I’m using the library and the wc3dom library.
This is from the max window:
print: jsobject 22669296
Here is the code:
file = new File(filePath);
xml = file.readstring(9999999);
//instantiate the W3C DOM Parser
parser = new DOMImplementation();
//load the XML into the parser and get the DOMDocument
domDoc = parser.loadXML(xml);
//get the root node (in this case, it is SAMPLES)
docRoot = domDoc.getDocumentElement();
//get the first "Key" element
firstTag1 = docRoot.getChildNodes().item(0);
//display the data
alert = firstTag1.getAttributes().item(0).getNodeValue();
On Mar 24, 2007, at 6:48 PM, casey basichis wrote:
> Anyone know why its returning the jsobject bit and not the attribute?
> This is from the max window:
> print: jsobject 22669296
> //display the data
> alert = firstTag1.getAttributes().item(0).getNodeValue();
It would mean that the alert object is something other than a String,
Array, or Number object. These are the only entities which are
automatically converted. You’ll want to investigate further the xmljs
library to determine what methods you’ll want to call to convert the
object to one of these classes. Perhapt there’s a toString() method
or something similar.
C74 RSS Feed | © Copyright Cycling '74