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

On Tue, Jun 07, 2005 at 10:35:27AM +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 ?
No child element may mean various things, your question is ambiguous.
Node->children == NULL might be the test you want ... or not.


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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