Share via


ISAXDeclHandler::elementDecl Method (Compact 2013)

3/26/2014

This method reports an element type declaration. The content model consists of the string "EMPTY", the string "ANY", or a group of values in parentheses that is optionally followed by an occurrence indicator (for example, <!ELEMENT DOCUMENT (TITLE,AUTHOR+,SUMMARY*,NOTE?)>). The model is normalized so that all parameter entities are fully resolved, all white space is removed, and enclosing parentheses are included.

Syntax

HRESULT elementDecl(
  const wchar_t* pwchName,
  int cchName,
  const wchar_t* pwchModel,
  int cchModel
);

Parameters

  • pwchName
    [in] Pointer to the element type name.
  • cchName
    [in] Length of the element type name.
  • pwchModel
    [in] Pointer to the content model as a normalized string.
  • cchModel
    [in] Content model as a normalized string length.

Return Value

  • S_OK
    Returned if no errors occur.
  • E_FAIL
    Returned if the parse operation should be aborted.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

ISAXDeclHandler
ISAXDeclHandler::attributeDecl Method