Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

ISAXAttributes Interface

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

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.

[Visual Basic]

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.

[C/C++]

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.

Versioning

MSXML 3.0 and later

Requirements

Implementation: msxml5.dll

[C/C++]

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

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.