@Override void getChildren(Object node, String localName, String namespaceUri, List result) { if ("".equals(namespaceUri)) { namespaceUri = null; } NodeList children = ((Node) node).getChildNodes(); for (int i = 0; i < children.getLength(); ++i) { Node subnode = children.item(i); // IMO, we should get the text nodes as well -- will discuss. if (subnode.getNodeType() == Node.ELEMENT_NODE || subnode.getNodeType() == Node.TEXT_NODE) { if (localName == null || (equal(subnode.getNodeName(), localName) && equal(subnode.getNamespaceURI(), namespaceUri))) { result.add(subnode); } } } }
@Override void getChildren(Object node, String localName, String namespaceUri, List result) { if ("".equals(namespaceUri)) { namespaceUri = null; } NodeList children = ((Node) node).getChildNodes(); for (int i = 0; i < children.getLength(); ++i) { Node subnode = children.item(i); // IMO, we should get the text nodes as well -- will discuss. if (subnode.getNodeType() == Node.ELEMENT_NODE || subnode.getNodeType() == Node.TEXT_NODE) { if (localName == null || (equal(subnode.getNodeName(), localName) && equal(subnode.getNamespaceURI(), namespaceUri))) { result.add(subnode); } } } }
@Override void getChildren(Object node, String localName, String namespaceUri, List result) { if ("".equals(namespaceUri)) { namespaceUri = null; } NodeList children = ((Node) node).getChildNodes(); for (int i = 0; i < children.getLength(); ++i) { Node subnode = children.item(i); // IMO, we should get the text nodes as well -- will discuss. if (subnode.getNodeType() == Node.ELEMENT_NODE || subnode.getNodeType() == Node.TEXT_NODE) { if (localName == null || (equal(subnode.getNodeName(), localName) && equal(subnode.getNamespaceURI(), namespaceUri))) { result.add(subnode); } } } }