string xmlReaderGetAttributeNumber(xmlReader reader,
number- the index of the attribute you want (starting at 0)
xmlReaderGetAttributeNumber() will get the text value of an
attribute, based on its ordering.
It uses a 0-based numbering system -
0 is the first attribute,
1 is the second, and so on.
<$attrNum = (xmlReaderGetAttributeCount($reader))>
<while $loop lt $attrNum>
<$val = (xmlReaderGetAttributeNumber($reader, $loop))>
Attr $loop is [$val]
The ordering of the attributes as provided by this function might NOT be the same as the ordering of the attributes in the XML document. This is legal, as the ordering of attributes is not significant in an XML document (see section 3.1 of the XML spec).