If my xml looks like:
<root version="1.1">
<node number="1">
<url>http://....</url>
</node>
<url>http://...</url>
</root>
Now in my endElement event I look if the xml element starts with 'url', but how do I know when the url
element is the url element inside the node
element and when it is not?
public void endElement(String uri, String localName, String qName, Attributes attributes) {
if(qName.equals("url")) {
someObject.setUrl(characters);
}
}