I have an XML like this:
1 Declaration of Human Rights
Check if the Node is a Dom Element, cast, and call getElementsByTagName()
Node
Element
getElementsByTagName()
Node doc = docs.item(i); if(doc instanceof Element) { Element docElement = (Element)doc; ... cell = doc.getElementsByTagName("aoo").item(0); }