XmlReader.MoveToContent Method

Checks to find whether the current node is a content node.

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

Syntax

public virtual XmlNodeType MoveToContent ()

Return Value

The NodeType of the current node found by the method or XmlNodeTypeNone if the reader has reached the end of the input stream.

Remarks

Checks to find out whether the current node is a content note. This would include non-whitespace text, CDATA, Element, EndElement, EntityReference or EndEntity. If the node is not a content node, then the method skips ahead to the next content node or end of file. Skips over nodes of type ProcessingInstruction, DocumentType, Comment, Whitespace, and SignificantWhitespace.

Version Information

Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

XmlReader Class
XmlReader Members
System.Xml Namespace