Moves the reader to a content node.
[Visual Basic] Public Function MoveToContent() As XmlNodeType [C#] public XmlNodeType MoveToContent(); [C++] public: XmlNodeType MoveToContent(); [JScript] public function MoveToContent() : XmlNodeType;
The NodeType property value after skipping the beginning of the input stream, whitespace, comments, and processing instructions.
Exception Type | Condition |
---|---|
XmlException | If incorrect XML is encountered in the input stream. |
If the reader is positioned at the beginning of the input stream, on a whitespace text node, on a comment, on a processing instruction, on the XML header, or on the document type declaration, the reader is moved to the next node. This process is repeated until the reader is positioned on a start tag, an end tag, a non-whitespace text node, a CDATA node, or at the end of the input stream. The XmlNodeType of the resulting node is then returned.