(PHP 5 >= 5.1.0, PHP 7)
XMLReader::moveToAttributeNo — Move cursor to an attribute by index
$index
   ) : boolPositions cursor on attribute based on its position.
indexThe position of the attribute.
   Returns TRUE on success or FALSE on failure.