Compartilhar via


ISAXAttributes::getTypeFromQName Method (Windows CE 5.0)

Send Feedback

This method finds an attribute by XML 1.0 qualified name and returns the attribute's type, as declared in the document type definition (DTD) or schema. If a DTD or schema does not exist or the schema type does not map directly to a DTD attribute type, the return value is "CDATA".

HRESULT getTypeFromQName(const wchar_t* pwchQName,intcchQName,const wchar_t** ppwchType,int* pcchType);

Parameters

  • pwchQName
    [in] Pointer to the qualified name.
  • cchQName
    [in] Length of the qualified name string.
  • ppwchType
    [out] Pointer to the pointer to the returned type of the attribute.
  • pcchType
    [out] Pointer to the length of the attribute-type string.

Return Values

  • 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

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

See Also

getType Method | ISAXAttributes:IUnknown Interface

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.