[xml] preserveWhiteSpace bug



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
nodes. preserveWhiteSpace is ignored A temporary workaround is to save the file using Unix LF instead of
Windows CRLF linebreaks. The bug has been reported several times on the
PHP buglist but the problem is with the underlying libxml2 library. Code
samples are posted in these bug reports already.



http://bugs.php.net/bug.php?id=31873



http://bugs.php.net/bug.php?id=32033




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