Hi, Maarten --

the asXML() method just provides you an easy way to get a default Sting-value of your document.

However, including an encoding declaration in a Java string doesn't really make sense... It's a hint for a parser reading a binary stream to know how to interpret what follows. There are no rules for how XML is represented in memory (outside of DOM or dom4J or XOM, etc.), but including the encoding declaration in a String doesn't seem (to me) like the right thing to do.


        -- Paul



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to