RE: [xml] Need a API that iterates through Attributes on a givne node



All,

Thanx for your helpful suggestions.  I will experiment later.

I still remain hopeful that a higher level API would emerge such that one would not have to be concerned with 
the tree implementation.  Just like an API exists to provide the value of an attribute for a given attribute 
number, I think one should exist that gives the name and value for a given attribute number.  This makes for 
a cleaner interface between the library and the application.

Why don't I write it?  Firstly, it pays to make sure that it does not already exists.  Secondly, as with most 
of, time is too precious and costly.

Again, thanx,

M. Jones

-----Original Message-----
From: Danilo Segan [mailto:dsegan gmx net]
Sent: Tuesday, October 26, 2004 2:38 PM
To: Jones, Mark A (Mark)
Cc: xml gnome org
Subject: Re: [xml] Need a API that iterates through Attributes on a
givne node


Today at 19:58, Danilo Åegan wrote:

At least that's how Python bindings and xmlNode.properties (or
.get_properties()) seem to work.  So, I may be wrong, but even C
implementation of properties seems to indicate this is the case.

Actually, this implementation does the following:

    if (cur->type == XML_ELEMENT_NODE)
        res = cur->properties;
    else
        res = NULL;

So, this is probably what you're after.

Cheers,
Danilo



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