Should say that I'm aware of xmlGetProp...

What I want is a way of getting all the attribute of a node without knowing its
name. I've seen some mail about a xmlGetPropList. This is exactly what I want.

But doing the

xmlAttr*  attr = node->properties
for(;attr;attr = attr->next)
{
   // process attribute
}

does not works as there's no #FIXED attribute inside the properties of the node.

Regards.



Selon Laurent Marzullo <[EMAIL PROTECTED]>:

> Hello all,
>
> Is there a way to have an xml node attribute to be filled automatically
> according to DTD definition ?
>
> For example, if I've the following DTD declaration:
>
> <!ELEMENT  myelt   (#PCDATA)>
> <!ATTLST   myelt   attr1    CDATA #FIXED "fixed-value" >
>
> I want to have an attribute attr1 into the xmlNode 'myelt', even if I do not
> specify it into the xml file. For now, when looking at myelt->properties,
> it's
> NULL.
>
>
> Thanks all.
>
>
> +--------------------+
> + Laurent Marzullo
> +
> _______________________________________________
> xml mailing list, project page  http://xmlsoft.org/
> [email protected]
> http://mail.gnome.org/mailman/listinfo/xml
>


+--------------------+
+ Laurent Marzullo
+
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to