Re: [xml] find out wether a node is a leaf or contains other elements
- From: Daniel Veillard <veillard redhat com>
- To: klemens letulé <klemens_letule gmx de>
- Cc: xml gnome org
- Subject: Re: [xml] find out wether a node is a leaf or contains other elements
- Date: Tue, 7 Jun 2005 04:40:11 -0400
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]