Hi All, I found the same error that was present in XercesParser in JaxpParser. It create Node with Null value when it found node like: <node />
To fix the problem replace: while (child != null){ parse(node, child, rank+1); child = child.getNextSibling(); }
with if(child==null){ node.setValue(""); return node; } do{ parse(node, child, rank+1); child = child.getNextSibling(); }while (child != null); return node;
Log in to post a comment.
Hi All,
I found the same error that was present in XercesParser in JaxpParser. It create Node with Null value when it found node like:
<node />
To fix the problem replace:
while (child != null){
parse(node, child, rank+1);
child = child.getNextSibling();
}
with
if(child==null){
node.setValue("");
return node;
}
do{
parse(node, child, rank+1);
child = child.getNextSibling();
}while (child != null);
return node;