Hi Brad,

it's a little bit unclear what you're trying to do:

1. Do you pass text fragment below to XML parser? If so what do you use?
Where this text is stored? As string? InputStream/Reader?
2. Which pasrer version?
3. Do you parse it into DOM?
4. What does it return in terms of DOM (for instance)?

All these important to recreate the situtation. B/c what you're saying is
strange. For given sample XML you should have got new-line character text
node. I just tried it with Xerces 1.0.3 and 2.0. Everything was fine.

Thanks,
Dimitry

-----Original Message-----
From: Brad Drake [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 31, 2002 11:32
To: [EMAIL PROTECTED]
Subject: new line problem


Hello,
    I have an xml document that I am trying to parse that contains a new
line character. For example:

    <xml>
        <char>&#10;</char>
    </xml>

I want the new line character that I pull from the document to be '\n' not
"\n". The problem is that the parser keeps pulling '\' then 'n'. I want the
character new line not the string "\n". I have tried a couple of things
including just replacing the string "\\n" when I see it but I would rather
avoid having to manually put in other characters that might come up. Any
help would be great. Thanks!!
    Brad




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to