WriteNodeShallow

 

Copies the current node from the specified source IXmlReader to the IXmlWriter, 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 IXmlWriter, without writing the children of the current node. This method is similar to WriteNode, except that it will only write the current node. It will not close the node, and will not move the reader forward.

Header: XmlLite.h

Library: XmlLite.lib

WriteNode
IXmlWriter Methods

Show: