Guess it\'s a simple question for a javascript guru, but i\'m learning and got a problem I can\'t guess out.
I\'m interested in reading an XML file using javascript. He
The problem you are running into is that technically "attributes" of subobject are also children of object. Remember that any element is a Node object, and on that Node you can get all childNodes. You can do that and process each "Element" node and determine if it is an "attribute" Node.
See http://www.w3schools.com/jsref/dom_obj_node.asp for more information on this.