Share via


WriteNodeShallow (Compact 2013)

3/26/2014

This method copies the current node from the specified source IXmlReader to the IXmlWriter, without writing the children of the current node.

Syntax

HRESULT WriteNodeShallow (
    IXmlReader pReader, 
    BOOL fWriteDefaultAttributes
);

Arguments

  • pReader
    The reader from which to read.
  • fWriteDefaultAttributes
    Specifies whether to also copy the default attributes or elements from the supplied IXmlReader.

Return Value

This method returns S_OK if no error is generated.

Remarks

This method copies the current node from the specified IXmlReader to the IXmlWriter, without writing the children of the current node. This method resembles WriteNode, except that it will only write the current node. It will not close the node, and will not move the reader forward.

See Also

Reference

IXmlWriter Methods
IXmlReader
IXmlWriter
WriteNode
IXmlWriter Properties