|
SYNOPSIS
int xmlReaderMoveToAttribute(xmlReader reader, string name)
Parameters:
-
reader - the xmlReader object -
name - the name of the attribute you want to move to
Returns:
-
1 - success -
0 - attribute not found -
-1 - other error
DESCRIPTION
xmlReaderMoveToAttribute() 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 ALSO
xmlReaderMoveToAttributeNumber,
xmlReaderMoveToElement,
xmlReaderMoveToFirstAttribute,
xmlReaderMoveToNextAttribute,
xmlReaderRead
Copyright © Thunderstone Software Last updated: Mon Feb 18 10:28:15 EST 2013
|