BAEL ???? - Intro to XPath with Java - quick fix
Based on email feedback. * Changing `childs` to `childNodes` * Changing `nodeList = (NodeList)` to `NodeList nodeList = (NodeList)`
This commit is contained in:
parent
67e11e004e
commit
9bf766f619
|
@ -163,10 +163,10 @@ public class DefaultParser {
|
|||
|
||||
private void clean(Node node) {
|
||||
|
||||
NodeList childs = node.getChildNodes();
|
||||
NodeList childNodes = node.getChildNodes();
|
||||
|
||||
for (int n = childs.getLength() - 1; n >= 0; n--) {
|
||||
Node child = childs.item(n);
|
||||
for (int n = childNodes.getLength() - 1; n >= 0; n--) {
|
||||
Node child = childNodes.item(n);
|
||||
short nodeType = child.getNodeType();
|
||||
|
||||
if (nodeType == Node.ELEMENT_NODE)
|
||||
|
|
Loading…
Reference in New Issue