Thank you for your reply. Just updated my profile.
the error that I was getting was WRONG_DOCUMENT_ERR: A node is used in a different document -- which I just managed to fix by chagning my code to
But got a java.lang.UnsupportedOperationException. Here is what I am trying to do.
Extending AbstractXsltView, I am trying to domify my objects and add it to the model object
Here is my code
Do you (or anyone) know of a way to achieve the same in any fashion. Spring website provides an example which works for me (but its too simple for me to use it to comprehend the problem in the above situation).
Your document already has a root node, right? And an XML document can only have one root node. So when you try to add another child to the document, you are violating that rule. Probably you meant to add that node somewhere lower in the tree.