Re: [xml] Detecting empty nodes



neil scales wrote:
<MyXml>
   <default/>
</MyXml>


<MyXml>
   <default></default>

These are identical, by the definition of XML. There is no way to detect the difference between the two, nor should there be.

<MyXml>
</MyXml>

default's lack of presence IS significant with XML, and libxml can detect this - it's a limitation of the wrapper.

Jason




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