klyn.io.xml.sax.SAXAttributes.getIndex
method
public getIndex(uri as String, localName as String) as Int:
Description

Finds an attribute by Namespace URI and local name.

Parameters
  • uri Namespace URI, or empty string.
  • localName Local attribute name.
Returns

Zero-based index, or -1 when absent.

Example
index = attrs.getIndex("", "id")