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.

System_CAPS_ICON_note.jpg 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.

getIndexFromNameFinds an attribute by name and returns the (zero-based) index for the attribute.
getIndexFromQNameFinds an attribute by XML 1.0 qualified name and returns the (zero-based) index for the attribute.
getLocalNameFinds an attribute's local name by index.
getQNameFinds an attribute's qualified name (QName) by index.
getTypeFinds an attribute by index and returns the attribute's type, as declared in the document type definition (DTD) or schema.
getTypeFromNameFinds an attribute by namespace name and returns the attribute's type, as declared in the DTD or schema.
getTypeFromQNameFinds an attribute by XML 1.0 qualified name and returns the attribute's type, as declared in the DTD or schema.
getURIFinds an attribute's namespace URI by index.
getValueReturns the text value of an attribute.
getValueFromNameFinds the attribute by namespace name and returns the attribute's text value.
getValueFromQNameFinds 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.

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

lengthReturns the count of attributes for an element.

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

getLengthReturns the count of attributes.
getNameReturns all information related to the name of an attribute at a given index.

Implementation:

msxml3.dll (MSXML 3.0)

msxml6.dll (MSXML 6.0)

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

Implemented in: MSXML 3.0 and MSXML 6.0

Show: