On Wed, Jul 06, 2005 at 11:33:40AM +0200, Kasimier Buchcik wrote:
> Hi,
> 
> On Wed, 2005-07-06 at 04:05 -0400, Daniel Veillard wrote:
> > On Thu, Jul 07, 2005 at 09:45:38PM -0400, Trevor Lowing wrote:
> > > Hello,
> > > 
> > > Seems to be a bug with libxml2 2.6.X with handling XML files with Windows
> > > CRLF style linebreaks. The DOM parser reads the linebreaks as empty text
> 
> [...]
> 
> > paphio:~/XML -> cat tst.xml
> > <Programmers>
> >         <Programmer>
> >                 <firstName>&#321;ukasz</firstName>
> >                 <lastName>Budnik</lastName>
> >         </Programmer>
> > </Programmers>
> > paphio:~/XML -> xmllint --noblanks tst.xml
> > <?xml version="1.0"?>
> > <Programmers><Programmer><firstName>&#x141;ukasz</firstName><lastName>Budnik</lastName></Programmer></Programmers>
> > paphio:~/XML ->
> > 
> >   I don't own a Windows Licence, I can't test the problem on Windows.
> > It works for me... Also one should be sure that PHP opens the file in
> > binary mode for reading as this has been a problem in the past.
> > 
> > > http://bugs.php.net/bug.php?id=32033
> > 
> >   Seems to be the exact same problem, right ...
> >   Nothing I can do on my side, but I take patches from people who run and 
> > own
> > a Windows development environment.
> 
> This could be related to a filed Libxml2 bug at:
> http://bugzilla.gnome.org/show_bug.cgi?id=169838

  Hum, right ! Then it may not be Windows specific, just that
the files created on Windows have cr/lf ...
I will look at this.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to