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. |
This method finds an attribute by index and returns the attribute's type, as declared in the document type definition (DTD) or schema. If there is no DTD or schema or the schema type does not map directly to a DTD attribute type, the return value is "CDATA". For ambiguous names, the type from the first namespace is returned.
Syntax
HRESULT getType( int nIndex, const wchar_t** ppwchType, int* pcchType ); |
Parameters
- nIndex
-
[in] Attribute's index value.
- ppwchType
-
[out] Pointer to the pointer to the returned type of the attribute.
- pcchType
-
[out] Pointer to the length of the returned type attribute string.
Return Value
- S_OK
-
Returned if the attribute type is returned successfully.
- E_INVALIDARG
-
Returned for an invalid index or if no matching attribute is found.
- E_FAIL
-
Returned if an internal error occurs.
Remarks
The returned attribute can be, but is not limited to, one of the following types: CDATA, ID, IDREF, IDREFS, NMTOKEN, NMTOKENS, ENTITY, or ENTITIES.
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 |