[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] new line characters
- From: Daniel Veillard <veillard redhat com>
- To: Ohad Oded <Ohad Oded ealaddin com>
- Cc: xml gnome org
- Subject: Re: [xml] new line characters
- Date: Tue, 2 Mar 2004 07:48:27 -0500
On Tue, Mar 02, 2004 at 01:07:47PM +0200, Ohad Oded wrote:
> Hi,
>
> While parsing an xml file containing new line ("\r\n") characters in the
> character data of an element the parser does not include the carriage
> return character in the parsed text and a dump of this data to disk
> results in a changed xml file.
> Is there a way to configure libxml not to do so?
No. The stripping of \r in \r\n sequences when parsing is mandated by
the XML specification ! And I see no interest in generating them since
the very fist thing a parser will need to do is to remove them again.
If this is really a problem, write your own serializer ...
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]