Copies the current node from the specified source IXmlReader
to the IXmlWriterLite
, without writing the children of the current node.
HRESULT WriteNodeShallow (IXmlReader pReader, BOOL fWriteDefaultAttributes);
pReader
The reader to read from.
fWriteDefaultAttributes
Specifies whether to also copy the default attributes or elements from the supplied IXmlReader
.
Returns S_OK if no error is generated.
This method copies the current node from the specified IXmlReader
to the IXmlWriterLite
, without writing the children of the current node. This method is like WriteNode, except that it only writes the current node. It does not close the node, and does not move the reader forward.
Header: XmlLite.h
Library: XmlLite.lib