SYNOPSISint xmlReaderMoveToAttribute(xmlReader reader, string name)
Parameters:
reader - the xmlReader objectname - the name of the attribute you want to move to
Returns:
1 - success0 - attribute not found-1 - other error
DESCRIPTIONxmlReaderMoveToAttribute() moves the parser on to the specified
attribute of this function. This makes functions that operate on the
"current node" (such as xmlReaderGetName() and
xmlReaderGetContent()) take effect on the attribute, rather than
the element itself.
If the attribute is not found, 0 is returned and the readers
stays on the element.
EXAMPLE<$ret = (xmlReaderMoveToAttribute($reader, 'myAttr'))>
SEE ALSOxmlReaderMoveToAttributeNumber,
xmlReaderMoveToElement,
xmlReaderMoveToFirstAttribute,
xmlReaderMoveToNextAttribute,
xmlReaderRead