NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlReader.MoveToContent

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;

Return Value

The NodeType property value after skipping the beginning of the input stream, whitespace, comments, and processing instructions.

Exceptions

Exception Type Condition
XmlException If incorrect XML is encountered in the input stream.

Remarks

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.

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace