SYNOPSISxmlNode xmlTreeGetFirstAttribute(xmlNode element)
Parameters:
element - the element you want to get the first attribute of
Returns:
element
DESCRIPTIONxmlTreeGetFirstAttribute() returns the first attribute of the
element element.
Note that this returns the xmlNode of the attribute, not the
text of it. With the xmlNode of the attribute, you can use
things like xmlTreeGetName(), xmlTreeGetContent(),
xmlTreeGetNext(), etc.
If you only want the content of a certain attribute, you can use
xmlTreeGetAttributeContent() directly on the element instead.
EXAMPLE<$attr = (xmlTreeGetFirstAttribute($element))>
SEE ALSOxmlTreeGetChildren,
xmlTreeGetFirstChild,
xmlTreeGetNext,
xmlTreeGetPrevious,
xmlTreeGetParent,
xmlTreeGetAttributes