ReadNode()
XmlDocument::ReadNode(SharedPtr<XmlReader>) method
Creates an XmlNode object based on the information in the XmlReader. The reader must be positioned on a node or attribute.
virtual SharedPtr<XmlNode> System::Xml::XmlDocument::ReadNode(SharedPtr<XmlReader> reader)
Arguments
| Parameter | Type | Description |
|---|---|---|
| reader | SharedPtr<XmlReader> | The XML source. |
Return Value
The new XmlNode or nullptr if no more nodes exist.
Exceptions
| Exception | Description |
|---|---|
| NullReferenceException | The reader is positioned on a node type that does not translate to a valid DOM node (for example, EndElement or EndEntity). |
See Also
- Typedef SharedPtr
- Class XmlNode
- Class XmlReader
- Class XmlDocument
- Namespace System::Xml
- Library Aspose.Slides