[jdom-interest] Need to optionally cancel automatic escaping
Bradley S. Huffman
hip at cs.okstate.edu
Fri Jul 11 13:55:59 PDT 2003
If you can use the latest cvs code look at the classes org.jdom.output.Format,
org.jdom.output.EscapeStrategy to use with XMLOutputter.
Brad
"Lucio,Daniel" writes:
> Hi everyone!
>
> I know that this is not the first time that someone comes up with the =
> problems risen with the automatic escaping feature in JDOM. The reason =
> why I support the idea of been able to disable this feature of JDOM =
> programatically (like a boolean flag or a property), is because we are =
> having problems to read back and write in the linefeeds and carriage =
> returns from our documents.
> Because of specific reasons in our needs, we can the characters '\n' or =
> '\r' can appear as part of the content of elements or values of =
> attributes.
> But I found out that this characters:
> - in the value of an attribute are transformed into spaces
> - and if you have a combination like "....\n\r\n..." as content text, =
> the '\r' is lost when I read it back.
>
> I am using JDOM beta 9, and already tried different XML parsers like =
> Aelfred, Crimson and Xerces with no success.
> Ideally, if I can escape '\n' for a " " and '\r' for a "
" =
> everything would work perfectly. But, because the way things are right =
> now, you know that this will double escaped in my output documents, =
> getting weird things like: "...
..."
>
> Any input on how to overcome this will be welcome!
>
>
> Daniel.
>
>
> Pd, I would appreciate if someone could tell me instead, if there will =
> be a patch available soon. =3DD
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost
> .com
More information about the jdom-interest
mailing list