Re: [xml] Line-end Normalisation



On Wed, Jul 18, 2001 at 02:13:46PM +0200, Igor  Zlatkovic wrote:
as #xA#xA. Saving it again produces #xD#xA#xD#xA line-ends on the disk.
At this point line ends are duplicated and the phenomenon continues from
the beginning: each #xD#xA pair becomes #xD#xD#xA... and so on.

  Urgh ...

Now, the question is: What is to do? Does libxml2 require all strings in
memory to have #xA line-delimiters?

  That's one thing. It could be handled by the escaping routines internally
or on the client code.
  I think that there is a 'b' flag to add to open() to avoid the conversion
by the libraries, this should probably be checked too.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Sep 17-18 2001 Brussels Red Hat TechWorld http://www.redhat-techworld.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]