Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Copies the current node from the specified XML reader to the specified XML writer.
HRESULT WsCopyNode(
[in] WS_XML_WRITER *writer,
[in] WS_XML_READER *reader,
[in, optional] WS_ERROR *error
);
[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.
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. |
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.
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 |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today