Boyd Waters wrote:
> [...]
> One problem remains: I cannot emit a well-formed XML document because
> there are leading blank lines. Consider this document:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jsp:root xmlns:jsp ="http://java.sun.com/jsp_1_2">
> <![CDATA[
> <?xml version="1.0" encoding="UTF-8"?>
> ]]>
> </jsp:root>
>
> The <jsp:root> tag is converted to a blank line. I get blank lines in my
> document before my (quoted) <?xml... declaration.
>
> Has anyone found a work-around to this?
> [...]
It's a bit ugly, but this should work:
<?xml version="1.0" encoding="UTF-8"?><jsp:root xmlns:jsp
="http://java.sun.com/jsp_1_2"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
]]>
</jsp:root>
In other words, place all elements upto an including the CDATA start tag
on the first line. Since these elements are consumed by the JSP container,
the blank lines you see in your version are caused by the line feed
characters after each element.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]