WsWriteEndElement function (webservices.h)

Writes an end element to a Writer. If the writer has no open elements, the function returns WS_E_INVALID_FORMAT. (See Windows Web Services Return Values.) If the encoding supports empty elements, and no content was written between the start element and end element, an empty element will be written.

Syntax

HRESULT WsWriteEndElement(
  [in]           WS_XML_WRITER *writer,
  [in, optional] WS_ERROR      *error
);

Parameters

[in] writer

A pointer to the WS_XML_WRITER object to which the end element is written. The pointer must reference a valid XML Writer object.

[in, optional] error

A pointer to a WS_ERROR object where additional information about the error should be stored if the function fails.

Return value

This function can return one of these values.

Return code Description
E_INVALIDARG
One or more arguments are invalid.
WS_E_INVALID_OPERATION
The operation is not allowed due to the current state of the object.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header webservices.h
Library WebServices.lib
DLL WebServices.dll