On 06/27/2010 01:35 PM, Dominique Devienne wrote:
with \n, which is just like any other character*, the serializer doesn't do
anything special, and the output the also contain a "plain" \n.
Jon is correct: or similar should be emitted for \n. Newlines are _not_ just like any other character; in XML attributes they are collapsed into a generic
whitespace sequence. For example,
<project default="run">
<target name="run">
<echo message="hello
there"/>
<echo message="hello again"/>
</target>
</project>
prints
hello there
hello
again
In general, there is a certain class of characters other than the usual &<>"' which should be emitted in character entity form by any tool which purports to create
round-trippable XML. Others, like , are simply invalid in XML content and cannot be encoded at all.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org
For additional commands, e-mail: dev-h...@ant.apache.org