Skip to content

problem with DomContentHandler [SWS-389] #541

@gregturn

Description

@gregturn

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:

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.


Affects: 1.5.3

Referenced from: commits 7d50d57

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions