CR/LF handling 2003-01-25 - By Thomas Corte
Hi,
Scott Moore wrote:
> I have a text string with carriage returns #xA embedded in it. When I > create a Text node in the latest Xerces DOM with this string, all my > carriage returns get converted to a space. I really need to preserve > these carriage returns. How can I do this?
Are you sure that the CR/LF disappear on *parsing*? I'd assume they should merely be normalized to a simple LF by the parser (this is what I encountered).
However, they may disappear on *serialization*, but this can be prevented by invoking
setPreserveSpace (true)
on the used OutputFormat.
HTH,
-- Thomas Corte Thomas.Corte@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|