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

2005-06-07 Thread Daniel Veillard
On Tue, Jun 07, 2005 at 11:40:15AM +0200, "klemens letulé" wrote: > > > 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. > > > > Have you read the docs ? > >

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

2005-06-07 Thread klemens letulé
> --- Ursprüngliche Nachricht --- > Von: Daniel Veillard <[EMAIL PROTECTED]> > An: klemens letulé <[EMAIL PROTECTED]> > Kopie: xml@gnome.org > Betreff: Re: [xml] find out wether a node is a leaf or contains other > elements > Datum: Tue, 7 Jun 2005 04:40:11 -0400 &

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

2005-06-07 Thread Daniel Veillard
On Tue, Jun 07, 2005 at 10:35:27AM +0200, "klemens letulé" wrote: > 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. Have you read the docs ? http://xmlsoft.o

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

2005-06-07 Thread klemens letulé
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