The startElement()
method in
ContentHandler
receives as an argument an
Attribute
object containing all attributes
on that tag.
public void startElement(String namespaceURI,
String localName, String rawName, Attributes atts) throws SAXException
The Attributes
interface:
package org.xml.sax;
public interface Attributes {
public abstract int getLength();
/* Look up an attribute's Namespace URI by index.*/
public abstract String getURI(int index);
public abstract String getLocalName(int index);
public abstract String getRawName(int index);
public abstract String getType(int index);
public abstract String getValue(int index);
public int getIndex(String uri, String localPart);
public int getIndex(String rawName);
public abstract String getType(String uri, String localName);
public abstract String getType(String rawName);
public abstract String getValue(String uri, String localName);
public abstract String getValue(String rawName);
}