Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
JDOM 2.x vs 1.x compatibility problem when parsing DOM documents #138
JDOM 2.x handles namespace aware documents well, but documents created manually, in a non-aware way, and then parsed by DOM builder, do not produce the 'right' results in JDOM 2.x even though JDOM 1.x produces the correct output.
This is not to say that JDOM 2.x is doing the wrong thing, just that JDOM 1.x handles poorly-created DOM input better than JDOM 2.x.
The above code, when processed by JDOM 1.x DOMBuilder, produces:
but when processed by JDOM 2.x it produces:
(note the missing
If the DOM document is built with:
then it works as expected