Expand Minimize

WsReadEndElement function

This function ensures that the current Reader node is an End element and advances the reader to the next node. If the Reader is not positioned on an End element when the function is called it will skip whitespace attempting to find one. If after skipping whitespace it is not positioned on an End element it returns a WS_E_INVALID_FORMAT exception. (See Windows Web Services Return Values.)

Syntax


HRESULT WINAPI  WsReadEndElement(
  _In_      WS_XML_READER* reader,
  _In_opt_  WS_ERROR* error
);

Parameters

reader [in]

A pointer to the XML Reader that is reads the End element. The pointer must reference a valid WS_XML_READER object.

error [in, optional]

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 codeDescription
WS_E_INVALID_FORMAT

The input data was not in the expected format or did not have the expected value.

WS_E_QUOTA_EXCEEDED

A quota was exceeded.

 

Remarks

This function can fail for any of the reasons listed in WsReadNode.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft