ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Stevens <>
Subject bug in DOMElementWriter
Date Sat, 26 Jun 2010 00:02:41 GMT
Say you have an element like this:

<foo attr="&#10;" />

If you want to load that through an XMLFragment and then output it later,
the DOMElementWriter.encode() method doesn't case properly for non-printable

The quick fix for me in this case was to overload that method and add this:

                case '\n':

Obviously, you'd want a more complete encoding of all possible values.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message