Share via


ISAXAttributes::getTypeFromName Method (Windows Embedded CE 6.0)

1/6/2010

This method finds an attribute by namespace 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".

Syntax

HRESULT getTypeFromName(
  const wchar_t* pwchUri, 
  int cchUri,
  const wchar_t* pwchLocalName, 
  int cchLocalName, 
  const wchar_t** ppwchType,
  int* pcchType
);

Parameters

  • pwchUri
    [in] Pointer to the namespace URI or, if the namespace has no URI, an empty string.
  • cchUri
    [in] Length of the namespace URI string.
  • pwchLocalName
    [in] Pointer to the local name of the attribute.
  • cchLocalName
    [in] Length of the local 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 Value

  • S_OK
    Returned if the attribute type is returned successfully.
  • E_INVALIDARG
    Returned if an invalid index or no matching attribute is found.
  • E_FAIL
    Returned if an internal error is reported.

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

See Also

Reference

ISAXAttributes
ISAXAttributes::getType Method