Merge pull request #15358 from eugenp/ulisseslima-patch-1

BAEL ???? - Intro to XPath with Java - quick fix
This commit is contained in:
Loredana Crusoveanu 2023-12-04 17:16:06 +02:00 committed by GitHub
commit 4ecf7785d1
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)