Hello,

I'm still not sure if the parser is going to handle the extra
whitespace correct yet, I'm still waiting to find that out.

But I don't think the solution would be in escaping the newlines,
because this should be undone in the parser and it could be beyond
your control.

Maybe an option for XMLTEXT for not adding whitespace could be a
possibilty.

Greetz,

Remco

On 12 dec, 19:07, Thomas Mueller <[email protected]> wrote:
> Hi,
>
> For my use case, it's a feature :-) The generated XHTML looks better.
>
> Is it really a problem for you? Specially when generating XHTML.
>
> By the way, you should use XMLTEXT or XMLCDATA to avoid XML injection:
>
> CALL XMLNODE('a', XMLATTR('href', 'http://h2database.com'),
> XMLNODE('b', null, XMLTEXT('H' || CHR(13) || CHR(10) || '2')));
>
> Maybe the newline should be escaped (using &#x) when using XMLCDATA, what
> do you think?
>
> Regards,
> Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to