Hi !
 
I know it's possible to export an Element and all its sub-elements to a
String using this command:
org.apache.batik.dom.util.DOMUtilities.writeNode(e, writer);
 
But is there some way to convert it back to an Element once again? (of
course, with all the parent-document-references gone, but in my case
that really doesn't matter since I'm going to import the Element into
another document anyway once de-serialized)
 
Of course I could create a new empty Document, import the node, and
convert the document to a String, and then recreate the document once
again and extract the Element, but it seems like that would waste alot
of unnecessary space and CPU.
 
Regards
Henric Rosvall

Reply via email to