XML : How can I programatically modify an XML Document to respect a DTD in java

I have an XML Document built programatically and waiting for serialisation (as a String). Before serialising it though, I would like to re-arrange its nodes so that they match the definition of the DTD. I should mention that my implementation prevents me to know in which order the tree will be built.

Any recommended solutions for this ?

No comments:

Post a Comment