Hello,

If I add content to a node with newlines in it, the function XMLNODE
seems to format the content as well. This changes the original
content.

It is easily shown with this statement:
CALL XMLNODE('a', XMLATTR('href', 'http://h2database.com'),
XMLNODE('b', null, 'H' || CHR(13) || CHR(10) || '2'))

This will produce this:
"<a href="http://h2database.com";>
    <b>
        H
        2
    </b>
</a>"

But I was expecting this:

"<a href="http://h2database.com";>
    <b>H
2</b>
</a>"

I am not sure if I can classify this behaviour as a bug or a feature,
but it isn't what I expected :)

With kind regards,

Remco Schoen

-- 
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