Improve testing of XML attribute handling

Closes gh-166
This commit is contained in:
Andy Wilkinson
2015-11-16 17:41:42 +00:00
parent 58b992d99e
commit acb87b98b8
2 changed files with 66 additions and 11 deletions

View File

@@ -116,7 +116,6 @@ class XmlContentHandler implements ContentHandler {
}
for (int i = 0; i < matchingNodes.getLength(); i++) {
Node node = matchingNodes.item(i);
if (node.getNodeType() == Node.ATTRIBUTE_NODE) {
Attr attr = (Attr) node;
attr.getOwnerElement().removeAttributeNode(attr);