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