Everytime the function appendChild on a Node is used , the return value should be set to the original node (the one passed as argument). This must be done as Jboss create it's own element and use it as a wrapper around the one has been passed in the function.
So , for example, the code in the function startElement(..) should be changed from:
Node parent = getParent();
Element element = document.createElementNS(uri, qName);
...........(more code here)
parent.appendChild(element);
elements.add(element);
to
Node parent = getParent();
Element element = document.createElementNS(uri, qName);
...........(more code here)
element = parent.appendChild(element);
elements.add(element);
Alessandro Palumbo opened SWS-389 and commented
Everytime the function appendChild on a Node is used , the return value should be set to the original node (the one passed as argument). This must be done as Jboss create it's own element and use it as a wrapper around the one has been passed in the function.
So , for example, the code in the function startElement(..) should be changed from:
to
And so on everywhere appendChild is used.
Affects: 1.5.3
Referenced from: commits 7d50d57
The text was updated successfully, but these errors were encountered: