[xml] find out wether a node is a leaf or contains other elements



Hello,

I just started to use libxml and am already stuck. The question is more or
less in the subject. I want to restrict the deletion of nodes who have no 
child elements.

e.g.

pseudoCode:

if( nodeset->nodeTab[0] == aLeaf){
    LOG(DBG_ERROR, "DELETING FAILED FOR: %s - 
                    CAN NOT DELETE PCDATA NODES\n\n", xpathUri);  

Thanks in advance, Klemens

-- 
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl



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