Hi,
I am generating a xml document using
Document document = DocumentHelper.createDocument();
Element root = document.addElement( "root" );
Element author1 = root.addElement( "author" )
.addText( strData );
...
I do not have control over what is in the data, so there could be < or > etc.
in it.
What is the best practice to handle this?
There used to be a DocumentHelper.encodeString(), but that seems to be gone?
I assume that dom4j is not doing any escaping/encoding by default!?
What if there are illegal characters (control characters like 0x7) in the
data? Is a binary encoding (e.g. base64) the only way to go?
Thanks
Michael
-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user