Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The IMXAttributesinterface complements the implementation of the ISAXAttributesinterface, allowing you to create and edit, not just query, attribute collections. The following coclasses are implemented for ISAXAttributesand IMXAttributes:

  • SAXAttributes(version-independent)

  • SAXAttributes30(the version-dependent class for the Microsoft® XML Parser 3.0)

Note:
Coclasses define a class to the Component Object Model (COM). The coclass definitions include a list of interfaces supported by COM objects created from this class.

This implementation of the IMXAttributesinterface returns what is put inside. Because the ISAXAttributesimplementation cannot be sure which implementation is provided, it cannot be sure of the validity of attributes. The requirements of different applications may be different. For this reason, the implementation of the coclass does not enforce any assumption about input information, accepting it whenever possible.

The interface is used for one of the following actions:

  • To take a persistent snapshot of an attribute.

  • To construct or modify an attribute's object in a SAX2 (Simple API for XML) driver or filter.

The following table shows the methods for this interface.

Method Description

addAttribute Method

This method adds an attribute to the end of the list.

addAttributeFromIndex Method

This method adds an attribute, whose value is equal to the indexed attribute in the input attributes object, to the end of the list.

clear Method

This method clears the attribute list for re-use.

removeAttribute Method (XML SAX)

This method removes an attribute from the list.

setAttribute Method (XML SAX)

This method sets an attribute in the list.

setAttributes Method

This method copies all existing attributes of a collection to a specified object.

setLocalName Method

This method sets the local name of a specific attribute.

setQName Method

This method sets the qualified name of a specific attribute.

setType Method

This method sets the type of a specific attribute.

setURI Method

This method sets the namespace Universal Resource Identifier (URI) of a specific attribute.

setValue Method

This method sets the value of a specific attribute.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

XML SAX Interfaces