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:
Ulisses Lima 2023-12-04 11:37:09 -03:00 committed by GitHub
parent 67e11e004e
commit 9bf766f619
1 changed files with 3 additions and 3 deletions

View File

@ -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)