EntityResolver

   

Attributes

This interface, used by startElement() , enables the application to access the element attributes. The various methods are as follows :

  • int getLength() ”Returns the number of attributes in the list

  • String getValue(int index) / String getValue(String qName) / String getValue(String uri, String localName) ”Return the attribute's value by index or by XML 1.0 qualified name , respectively

  • String getType(int index) / String getType(java.lang.String qName) / String getType(String uri,String localName) ”Return the attribute's type by index, by XML 1.0 qualified name, or by namespace, respectively

  • String getQName(int index) ”Returns the attribute XML 1.0 qualified name by index

  • String getURI(int index) ”Returns the attribute's namespace URI by index

  • String getLocalName(int index) ”Returns the attribute local name by index

  • int getIndex(String qName) / int getIndex(String uri,String localPart) ”Return the index of an attribute from XML 1.0 qualified name or by using its namespace, respectively

Warning

Beware that Attributes is valid only during the call to startElement() . If you need to store Attributes for later processing, make a copy with org.xml.sax.helpers.AttributeImpl .


   


Applied XML Solutions
Applied XML Solutions
ISBN: 0672320541
EAN: 2147483647
Year: 1999
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net