nsISAXMutableAttributes

This interface extends the nsISAXAttributes interface with
manipulators so that the list can be modified or reused.

Methods

addAttribute(uri, localName, qName, type, value)

Add an attribute to the end of the list.

For the sake of speed, this method does no checking
to see if the attribute is already in the list: that is
the responsibility of the application.

Parameters

uri The Namespace URI, or the empty string if none is available or Namespace processing is not being performed.
localName The local name, or the empty string if Namespace processing is not being performed.
qName The qualified (prefixed) name, or the empty string if qualified names are not available.
type The attribute type as a string.
value The attribute value.

clear()

Clear the attribute list for reuse.

removeAttribute(index)

Remove an attribute from the list.

Parameters

index The index of the attribute (zero-based).

setAttributes(attributes)

Set the attributes list. This method will clear any attributes in
the list before adding the attributes from the argument.

Parameters

attributes The attributes object to replace populate the list with.

setAttribute(index, uri, localName, qName, type, value)

Set an attribute in the list.

For the sake of speed, this method does no checking for name
conflicts or well-formedness: such checks are the responsibility
of the application.

Parameters

index The index of the attribute (zero-based).
uri The Namespace URI, or the empty string if none is available or Namespace processing is not being performed.
localName The local name, or the empty string if Namespace processing is not being performed.
qName The qualified name, or the empty string if qualified names are not available.
type The attribute type as a string.
value The attribute value.

setLocalName(index, localName)

Set the local name of a specific attribute.

Parameters

index The index of the attribute (zero-based).
localName The attribute's local name, or the empty string for none.

setQName(index, qName)

Set the qualified name of a specific attribute.

Parameters

index The index of the attribute (zero-based).
qName The attribute's qualified name, or the empty string for none.

setType(index, type)

Set the type of a specific attribute.

Parameters

index The index of the attribute (zero-based).
type The attribute's type.

setURI(index, uri)

Set the Namespace URI of a specific attribute.

Parameters

index The index of the attribute (zero-based).
uri The attribute's Namespace URI, or the empty string for none.

setValue(index, value)

Set the value of a specific attribute.

Parameters

index The index of the attribute (zero-based).
value The attribute's value.