Re: [xml] "official" way to test for any # of attributes on a node?



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]