Re: [xml] preserveWhiteSpace bug



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

Regards,

Kasimier



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