Re: [xml] bug in libxml-1.8.10

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Thu Sep 07 2000 - 12:23:45 EDT


On Thu, Sep 07, 2000 at 12:11:55PM -0400, Jordan Henderson wrote:
>
> Thanks, I knew there had to be a justification.

 yes it's hairy :-)

> Seems like there are a huge potential number of problems here. The two biggest
> that come to mind being inconsistent handling of trailing whitespace and
> conversions of line terminating characters.
>
> Hmmmm... Is there good support for making all white space very clear (I'm not
> sure how to do this with line terminators) in the libxml debugging modes?

  not currently, I could add a check to see if there is only
blanks in the given string and output it.
  Note that libxml implement one algorithm for space dectection and
removal (use xmlKeepBlanksDefault(0); to activate it). Doing
xmllint --noblanks --debug doc.xml and comparing it to
xmllint --debug doc.xml is a good way to check it does what you
may expect (but remember there is no algorithm satisfying all needs).

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 12:43:19 EDT