次の方法で共有


WriteNodeShallow

 

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 to read from.

fWriteDefaultAttributes
Specifies whether to also copy the default attributes or elements from the supplied IXmlReader.

Return Value

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 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.

Requirements

Header: XmlLite.h

Library: XmlLite.lib

See Also

WriteNode
IXmlWriter Methods