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:
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.org/tree.html
No child element may mean various things, your question is ambiguous.
Node->children == NULL might be the test you want ... or not.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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