Share via


ISAXDeclHandler::attributeDecl Method

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method reports an attribute type declaration. Only the first declaration for an attribute is reported. The attribute type can be either of the following two choices:

  • One of the following strings: "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION".
  • A parenthesized token group with the separator (|) and all white space removed.

Syntax

HRESULT attributeDecl(
  const wchar_t* pwchElementName,
  int cchElementName,
  const wchar_t* pwchAttributeName,
  int cchAttributeName,
  const wchar_t* pwchType,
  int cchType,
  const wchar_t* pwchValueDefault,
  int cchValueDefault,
  const wchar_t* pwchValue,
  int cchValue
);

Parameters

  • pwchElementName
    [in] Pointer to the name of the associated element.
  • cchElementName
    [in] Length of the element's name string.
  • pwchAttributeName
    [in] Pointer to the name of the attribute.
  • cchAttributeName
    [in] Length of the attribute's name string.
  • pwchType
    [in] Pointer to a string representing the attribute type.
  • cchType
    [in] Length of the attribute-type string.
  • pwchValueDefault
    [in] Pointer to a string representing the attribute default ("#IMPLIED", "#REQUIRED" or "#FIXED") or NULL (if none of these apply).
  • cchValueDefault
    [in] Length of the attribute's default string.
  • pwchValue
    [in] Pointer to a string representing the attribute's default value or NULL (if there is none).
  • cchValue
    [in] Length of the attribute's default value.

Return Value

  • S_OK
    Returned if no errors are reported.
  • E_FAIL
    The parse operation should be aborted.

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

See Also

Reference

ISAXDeclHandler