The root element has children which can be elements, comments, processing instructions, characters etc. You get the children of an element like this: Java Code: NodeList nodes = element.getChildNodes(); for(int i=0; i<nodes.getLength(); i++){ Node node = nodes.item(i); if(node instanceof Element){ //a child element to process Element child = (Element) node; String attribute = child.getAttribute("width"); ...
NodeList nodes = element.getChildNodes(); for(int i=0; i<nodes.getLength(); i++){ Node node = nodes.item(i); if(node instanceof Element){ //a child element to process Element child = (Element) node; String attribute = child.getAttribute("width");
PDF to TIFF Conversion & Control...
05-24-2013, 11:39 AM in Java Software