[xml] Detecting empty nodes



Hi,

I've inherited a project that uses a wrapper around LibXml.

The wrapper includes code to show if a node is present, but it can't
detect empty nodes.

This means that the following 3 snippets all report no nodes.

<MyXml>
   <default/>
</MyXml>


<MyXml>
   <default></default>
</MyXml>


<MyXml>
</MyXml>


Is this a limitation with LibXml?  Or (more likely) the wrapper?

Thanks



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