The current code expect, that each XML namespace is also stored as attribute - this is not true for elements created by createElementNS.
For an example, see patch, which processes the same XML two times - one time loaded from a file and one time dynamically created.
|Workflow||jira [ 12542878 ]||Default workflow, editable Closed status [ 12565526 ]|
|Workflow||Default workflow, editable Closed status [ 12565526 ]||jira [ 12586434 ]|
|Fix Version/s||Java 1.4.5 [ 12315957 ]|
|Fix Version/s||Java 1.5 [ 12315958 ]|
|Affects Version/s||Java 1.4.4 [ 12315956 ]|
|Affects Version/s||Java 1.5 [ 12315958 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|