Share via


ISAXAttributes Interface

 

The ISAXAttributes/IVBSAXAttributes interface allows access to a list of attributes by:

  • attribute index

  • namespace-qualified name

  • qualified (prefixed) name

Attributes that are declared #IMPLIED, but not specified in the start tag, are not in the list. In addition, attributes used as namespace declarations (xmlns*) are not in the list unless the "http://xml.org/sax/features/namespace-prefixes" feature is set to True. (It is False by default.)

If the namespace-prefixes feature is False, access by qualified name (QName) may not be available.

If the "http://xml.org/sax/features/namespaces" feature is False, access by namespace-qualified names may not be available.

Note

Information provided during an event call is valid only during the invocation of that event. This applies to both strings and interfaces. Performance would decrease significantly otherwise.

Methods

getIndexFromName Finds an attribute by name and returns the (zero-based) index for the attribute.
getIndexFromQName Finds an attribute by XML 1.0 qualified name and returns the (zero-based) index for the attribute.
getLocalName Finds an attribute's local name by index.
getQName Finds an attribute's qualified name (QName) by index.
getType Finds an attribute by index and returns the attribute's type, as declared in the document type definition (DTD) or schema.
getTypeFromName Finds an attribute by namespace name and returns the attribute's type, as declared in the DTD or schema.
getTypeFromQName Finds an attribute by XML 1.0 qualified name and returns the attribute's type, as declared in the DTD or schema.
getURI Finds an attribute's namespace URI by index.
getValue Returns the text value of an attribute.
getValueFromName Finds the attribute by namespace name and returns the attribute's text value.
getValueFromQName Finds the attribute by XML 1.0 qualified name and returns the attribute's text value.

The VBSAXAttributes interface is implemented by the Simple API for XML (SAX) reader.

Property

In addition to the preceding methods, the following property also applies to the IVBSAXAttributes interface.

length Returns the count of attributes for an element.

Methods

In addition to the preceding methods, the following methods also apply to the ISAXAttributes interface.

getLength Returns the count of attributes.
getName Returns all information related to the name of an attribute at a given index.

Requirements

Implementation:

msxml3.dll (MSXML 3.0)

msxml6.dll (MSXML 6.0)

Header and LIB files: msxml2.h, msxml2.lib , msxml6.h, msxml6.lib

Versioning

Implemented in: MSXML 3.0 and MSXML 6.0