xsl-list
[Top] [All Lists]

RE: insert linefeed

2004-04-20 12:39:53
-----Original Message-----
From: Derrick Koes [mailto:derrick_koes(_at_)hotmail(_dot_)com]

and then parse it to a DOM document for use in an XSL transform
(applying a
sytlesheet).  Parsing always throws the following exception.

org.xml.sax.SAXParseException: An invalid XML character (Unicode:
0x10) was

Well... linefeed is actually either O10 (decimal) or 0x0A (hex), but 0x10
would yield a control character that is indeed not allowed as character in
XML.

So,

test.appendChild(doc.createTextNode("\u0010"));

Try making it '\uA' (it's '\uXXXX', where XXXX is a sequence of one to four
*hexadecimal* characters)

Hope this helps!

Cheers,

Andreas



<Prev in Thread] Current Thread [Next in Thread>
  • insert linefeed, Derrick Koes
    • RE: insert linefeed, Andreas L. Delmelle <=