hi,

how can I add attribute text which has reserved character?

just using Element.addAttribute(String name, String text), the reserved char (e.g., a 
quote) is not escaped, or put in a CDATA block, when output via createPrettyPrint().

Ideally, it would be great if dom4j could figure this out on the fly and escape it or 
put CDATA bracket around it for me.

I don't see an obvious way to add CDATA as attribute text, like
        Element.addAttribute(String name, CDATA text);

so I guess I need to parse the string and escapes the disallowed chars?

this would be a common activity, yes?  ... know of any code samples for such escaping?

thanks,

larry



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to