Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Copies the current node from the specified XML reader to the specified XML writer.
Syntax
HRESULT WsCopyNode(
[in] WS_XML_WRITER *writer,
[in] WS_XML_READER *reader,
[in, optional] WS_ERROR *error
);
Parameters
[in] writer
Pointer to the WS_XML_WRITER to which to copy the XML node.
[in] reader
Pointer to the WS_XML_READER from which to copy the XML node.
[in, optional] error
Pointer to a WS_ERROR structure that receives additional error information if the function fails.
Return value
If the function succeeds, it returns NO_ERROR; otherwise, it returns an HRESULT error code.
Return code | Description |
---|---|
|
The operation is not allowed due to the current state of the object. |
|
The input data was not in the expected format or did not have the expected value. |
|
A quota was exceeded. |
Remarks
If the current node type is WS_XML_NODE_TYPE_ELEMENT,the current node, all its children, and the corresponding end element, are copied to the XML writer.
If the current node type is WS_XML_NODE_TYPE_BOF, nodes are copied until a node of type WS_XML_NODE_TYPE_EOF is reached. For information on node types, see the WS_XML_NODE_TYPE enumeration.
The reader will be positioned on the node following the node copied.
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 |