preserveWhiteSpace properties does'nt wokr

[email protected] (kaf)
Newsgroups php.xml.dev
Organization Nevod Ltd
Message-ID <[email protected]>
Hi
I try to use preserveWhiteSpace property of domDocument class:
<?php
$domdocument=new domDocument('1.0');
$xml="<?xml version='1.0'?>
<Root>
   <Child1/>
   <Child2/>
</Root>
";
$domdocument->preserveWhiteSpace=false;
$domdocument->loadXML($xml);
echo $domdocument->documentElement->firstChild->nodeName . "\n";
?>
In August all works correctly and script print:
Child1

In September source code in CVS for property preserveWhiteSpace
is changed and script now print
#text
(preserveWhiteSpace does not work).

Can someone explain me why?

I see at source code and find that all looks correct exept for code:
1267c1092
<     ctxt->loadsubset = (resolve_externals * XML_COMPLETE_ATTRS);
---
 >     ctxt->loadsubset = resolve_externals;
1268a1094,1095
 >     if (ctxt->keepBlanks == 0)
 > 		ctxt->sax->ignorableWhitespace = ignorableWhitespace;

In new code strings:
 >     if (ctxt->keepBlanks == 0)
 > 		ctxt->sax->ignorableWhitespace = ignorableWhitespace;
are missed.

-- 
п║ пёп╡п╟п╤п╣п╫п╦п╣п╪
п п╬я│я┌п╟я─п╣п╡ п░.п╓.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.