IMXAttributes:IDispatch (Windows CE 5.0)
The IMXAttributes interface complements the implementation of the ISAXAttributes interface, allowing you to create and edit, not just query, attribute collections. The following coclasses are implemented for ISAXAttributes and 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 IMXAttributes interface returns what is put inside. Because the ISAXAttributes implementation 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 | This method adds an attribute to the end of the list. |
addAttributeFromIndex | 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 | This method clears the attribute list for re-use. |
removeAttribute | This method removes an attribute from the list. |
setAttribute | This method sets an attribute in the list. |
setAttributes | This method copies all existing attributes of a collection to a specified object. |
setLocalName | This method sets the local name of a specific attribute. |
setQName | This method sets the qualified name of a specific attribute. |
setType | This method sets the type of a specific attribute. |
setURI | This method sets the namespace Universal Resource Identifier (URI) of a specific attribute. |
setValue | This method sets the value of a specific attribute. |
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.
Send Feedback on this topic to the authors