An XML library for NodeJS http://ift.tt/1xG7mrB
Or is there any other XML parser libraries similar to JQuery?
I having sort of difficulty to retrieve the value in "step" and "octave" node
var dd=document.childNamed("part").childrenNamed("measure")
for(var i=0;i<dd.length;i++){
console.log(dd[i].childNamed("note")) //<- to access pitch and step and octave node
}
The console log for the dd[i].childNamed("note") http://ift.tt/1zAZYgE
XML file
<measure>
<note>
<pitch>
<step>A</step>
<octave>4</octave>
</pitch>
</note>
</measure>
No comments:
Post a Comment