attributes Property (Windows CE 5.0)

Send Feedback

Contains the list of attributes for this node.


Script Syntax


Script Parameters


Script Return Value


C/C++ Syntax

HRESULT get_attributes(IXMLDOMNamedNodeMap** attributeMap);

C/C++ Parameters

  • attributeMap
    [out, retval] IXMLDOMNamedNodeMap returned for nodes that can return attributes (Element, Entity, and Notation nodes). Returns Null for all other node types. For the valid node types, the NamedNodeMap is always returned; when there are no attributes on the element, the list length is set to zero.

C/C++ Return Values

  • S_OK
    Success. Returns a non-null pointer value.
    Value returned if the node type does not allow attributes.
    Value returned if attributeMap is Null.


OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.

General Remarks

This value depends on the value of the nodeType property.

Value Description







Always returns Null.
NODE_ELEMENT Returns IXMLDOMNamedNodeMap that contains a list of nodes corresponding to the attributes of the element.
NODE_PROCESSING_INSTRUCTION Returns null for all processing instructions except the XML declaration, for example,
<?xml version="1.0" encoding="windows-1252" standalone="yes" ?>.

For the XML declaration, the version, encoding, and standalone specifications can be accessed as attributes from the corresponding node.

NODE_DOCUMENT_TYPE Values specified in the <!DOCTYPE ...> can be accessed as attributes from the node corresponding to the document type declaration. The names are "SYSTEM" and "PUBLIC". They are uppercase.


Returns IXMLDOMNamedNodeMap that exposes the PUBLIC ID, SYSTEM ID, and NDATA as attributes.

This property is read-only, and applies to the following objects and interfaces:

IXMLDOMAttribute, IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, DOMDocument, IXMLDOMDocumentFragment, IXMLDOMDocumentType, IXMLDOMElement, IXMLDOMEntity, IXMLDOMEntityReference, IXMLDOMNamedNodeMap, IXMLDOMNode, IXMLDOMNotation, IXMLDOMProcessingInstruction, IXMLDOMText, and IXTLRuntime.

See Also

nodeType Property

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.