XOM and getChildElements

kronix

New Member
I use this piece of Java with the XOM library to parse a sitemap.\[code\]Element root = doc.getRootElement();Elements urls = root.getChildElements("url");\[/code\]When I'm debugging, I can see that \[code\]root\[/code\] has a whole bunch of children, both \[code\]url\[/code\] elements and text elements. However, \[code\]root.getChildElements("url")\[/code\] returns an empty list.What am I doing wrong?
 
Back
Top