public getIndex(uri as String, localName as String) as Int:
Finds an attribute by Namespace URI and local name.
Zero-based index, or -1 when absent.
-1
index = attrs.getIndex("", "id")