getAttribute

getAttribute(index:         Integer;
             namespaceURI:  String output;
             localName:     String output;
             qualifiedName: String output;
             type:          String output;
             value:         String output): Boolean;

The getAttribute method of the JadeXMLParser class retrieves the attribute with the value specified in the index parameter. The getAttribute method parameters are listed in the following table.

Parameter Description
index The index (starting from 1)
namespaceURI Namespace URI or null ("") if the name has no namespace URI
localName Local name (without the prefix)
qualifiedName Qualified name (with the prefix)
type Reserved for future use
value The value of the attribute

The getAttribute method returns true if the specified index is in range or it returns false if it is not in range.

The number of attributes attached to the element is passed as a parameter to the startElement event method.

The getAttribute method returns valid results only during the scope of the startElement method invocation.