1 2 3 4 5 6 7 8 9 10 11 12 13
| void visitElement_State(org.w3c.dom.Element element,org.w3c.dom.Document document) throws Exception { // <State>
// element.getValue();
org.w3c.dom.NamedNodeMap attrs = element.getAttributes();
for (int i = 0; i < attrs.getLength(); i++) {
org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);
if (attr.getName().equals("dt:dt"))
{ // <State dt:dt="???">
org.jdom.Document jDOM= DOMtoJDOM(document);
// org.jdom.Element ele= new Element();
nom = element.getChildNodes().item(i).getNodeValue();
}
} |