[SWS-389] problem with DomContentHandler Created: 08/Jul/08  Updated: 04/May/12  Resolved: 13/Jul/08

Status: Closed
Project: Spring Web Services
Component/s: XML
Affects Version/s: 1.5.3
Fix Version/s: 1.5.4

Type: Bug Priority: Major
Reporter: Alessandro Palumbo Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Fedora 9, Jboss 4.2.2 GA, Jboss-ws 3.0.2.GA



 Description   

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

And so on everywhere appendChild is used.



 Comments   
Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Sun Dec 17 09:59:45 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.