Re: [xml] "official" way to test for any # of attributes on a node?
- From: Daniel Veillard <veillard redhat com>
- To: Chris Ryland <cpr emsoftware com>
- Cc: XML List <xml gnome org>
- Subject: Re: [xml] "official" way to test for any # of attributes on a node?
- Date: Sun, 1 Jun 2003 18:57:27 -0400
On Sat, May 31, 2003 at 11:53:30PM -0400, Chris Ryland wrote:
Is there an official way to test whether a given tree node has no
attributes at all?
Or do I just test with
if (node->properties == NULL)
...
depends if you consider namespaces declarations as attributes,
if yes then you must also check node->nsDef == NULL
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.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]