[SOLVED] DOM XML parser question
Hi I'm using the DOM XML parser classes and wandered if this is a correct perception:
Code :
Element eElement = (Element) node;
NodeList feedlist = eElement.getElementsByTagName("url");
Element feedname = (Element) feedlist.item(0);
NodeList feed2 = feedname.getChildNodes();
//set the element as country, get all tags specified as url
//set element as first in list and get its childnodes (values)
Just for reference the nodelist (node) not specified here is looking for elementsbytagname("country") which where the country comment comes from.
Re: DOM XML parser question
Re: DOM XML parser question
Thanks for the link, yes it does. I've used DOM parsing in PHP before but was a bit confused because in Java it seemed throw in another step which I didn't quite understand. Turns out I misinterpreted it slightly but I understand it now =]
Re: DOM XML parser question
Good. Glad I could help :)