XmlWriter::WriteNode(SharedPtr<XmlReader>, bool) method
When overridden in a derived class, copies everything from the reader to the writer and moves the reader to the start of the next sibling.
virtual void System::Xml::XmlWriter::WriteNode(SharedPtr<XmlReader> reader, bool defattr)
Arguments
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | reader is nullptr. |
| ArgumentException | reader contains invalid characters. |
XmlWriter::WriteNode(SharedPtr<XPath::XPathNavigator>, bool) method
Copies everything from the XPathNavigator object to the writer. The position of the XPathNavigator remains unchanged.
virtual void System::Xml::XmlWriter::WriteNode(SharedPtr<XPath::XPathNavigator> navigator, bool defattr)
Arguments
| Parameter | Type | Description |
|---|
| navigator | SharedPtr<XPath::XPathNavigator> | The XPathNavigator to copy from. |
| defattr | bool | true to copy the default attributes; otherwise, false. |
Exceptions
| Exception | Description |
|---|
| ArgumentNullException | navigator is nullptr. |
See Also