Share via


ISAXContentHandler::endElement Method (Windows CE 5.0)

Send Feedback

This method receives notification of the end of an element.

HRESULT endElement(const wchar_t* pwchNamespaceUri,intcchNamespaceUri,const wchar_t* pwchLocalName,intcchLocalName,const wchar_t* pwchQName,intcchQName);

Parameters

  • pwchNamespaceUri
    [in] Pointer to the name space URI.
  • cchNamespaceUri
    [in] Length for the name space URI string.
  • pwchLocalName
    [in] Pointer to the local name string.
  • cchLocalName
    [in] Length of the local name string.
  • pwchQName
    [in] Pointer to the qualified XML 1.0 name (QName) with prefix or, if QNames are not available, an empty string.
  • cchQName
    [in] Length of the QName string.

Return Values

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

Remarks

The reader invokes this method at the end of every element in the XML document. A corresponding startElement event occurs for every endElement event, even when the element is empty.

This event allows up to three of the following name components for each element:

  • Name space URI
  • Local name
  • QName or an empty string if the QName is not available

Any or all of these name components may be provided, depending on the values of the "http://xml.org/sax/features/namespaces" and the "http://xml.org/sax/features/namespace-prefixes" features. The name space URI and local name are required when the "http://xml.org/sax/features/namespaces" feature is True (the default). These values are optional when this feature is set to False. Note that neither the URI nor the local name value can be specified on its own. Both values are required.

Requirements

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

See Also

startElement Method | ISAXContentHandler:IUnknown Interface

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.