Hi I'm new to learning javascript and the XML DOM API. I've visited both topics a few times throughout the past year or so and played with both of them over and over again. I understand most of the basics and I learned by visiting and going through the tutorials at w3schools.com on both the Javascript and the XML DOM tutorials. I have a question after fiddling around for hours with the XML DOM API and fetching data, changing values, creating new elements, removing elements..... Throughout my time of fiddling around, I put up a test page that simply loads up the XML DOM object, then loads up an XML file. Up until now I've been fiddling around and trying things until I get output. document.write(xmlDoc.getElementsByTagName("author")[0].childNodes[0].nodeValue); I've been doing the above kind of stuff to see if I get any output and since i'm new this process is very time consuming as I'm not entrely familiar with how to fetch data using the above approach (which it turns out is the normal way to do it). I always end up receiving either no output at all during my testing and fiddling around, or else I'll end up with output that says "Undefined". Eventually, I usually figure it out and get the correct value but it takes me forever to do. Some people on IRC chat advsd me that I should use firebug to test and debug to make the process easier and less time consuming. Ok so after fiddling around with firebug, it's great and all, it shows me HTML navigating and DOM navigating and it has a nice little console that lets me type in commands to see what they output... Is there a graphical way to just navigate right through to the item that I want to target and it just creates me a selection code automatically??? I guess i'm looking for an easy graphical way to generate the fetching code like the one I posted above... rather than to fiddle around testing in the firebug console Any help much appreciated,
you may want to look at this xml class for mootools (node selection/list via xpath, amongst other stuff): http://github.com/magmoro/mif/raw/558369964fba57c91aae12e0730b4fbd6d2bbedb/Builder/builder.js
Yes ok thanks, I checked it over. Since I'm still rather new to Javascript, especially class objects. No instructions either , hmmm