C# Class System.Xml.Xsl.Runtime.XmlNavTypeFilter

Filters any node not of the specified type (type may not be attribute or namespace).
Inheritance: XmlNavigatorFilter
Mostrar archivo Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
Create ( XPathNodeType nodeType ) : XmlNavigatorFilter

Return a previously constructed XmlNavigatorFilter that skips over nodes that do not match the specified type.

IsFiltered ( XPathNavigator navigator ) : bool

Return false if the navigator is positioned on a node with a matching type.

MoveToContent ( XPathNavigator navigator ) : bool

Reposition the navigator on the first child with a matching type.

MoveToFollowing ( XPathNavigator navigator, XPathNavigator navEnd ) : bool

Reposition the navigator on the next following element with a matching kind.

MoveToFollowingSibling ( XPathNavigator navigator ) : bool

Reposition the navigator on the next non-attribute sibling with a matching type.

MoveToNextContent ( XPathNavigator navigator ) : bool

Reposition the navigator on the next child with a matching type.

MoveToPreviousSibling ( XPathNavigator navigator ) : bool

Reposition the navigator on the previous non-attribute sibling with a matching type.

Private Methods

Method Description
XmlNavTypeFilter ( ) : System.Xml

There are a limited number of types, so create all possible XmlNavTypeFilter objects just once.

XmlNavTypeFilter ( XPathNodeType nodeType ) : System.Xml

Keep only nodes with XPathNodeType = nodeType, where XPathNodeType.Text selects whitespace as well.

Method Details

Create() public static method

Return a previously constructed XmlNavigatorFilter that skips over nodes that do not match the specified type.
public static Create ( XPathNodeType nodeType ) : XmlNavigatorFilter
nodeType XPathNodeType
return XmlNavigatorFilter

IsFiltered() public method

Return false if the navigator is positioned on a node with a matching type.
public IsFiltered ( XPathNavigator navigator ) : bool
navigator System.Xml.XPath.XPathNavigator
return bool

MoveToContent() public method

Reposition the navigator on the first child with a matching type.
public MoveToContent ( XPathNavigator navigator ) : bool
navigator System.Xml.XPath.XPathNavigator
return bool

MoveToFollowing() public method

Reposition the navigator on the next following element with a matching kind.
public MoveToFollowing ( XPathNavigator navigator, XPathNavigator navEnd ) : bool
navigator System.Xml.XPath.XPathNavigator
navEnd System.Xml.XPath.XPathNavigator
return bool

MoveToFollowingSibling() public method

Reposition the navigator on the next non-attribute sibling with a matching type.
public MoveToFollowingSibling ( XPathNavigator navigator ) : bool
navigator System.Xml.XPath.XPathNavigator
return bool

MoveToNextContent() public method

Reposition the navigator on the next child with a matching type.
public MoveToNextContent ( XPathNavigator navigator ) : bool
navigator System.Xml.XPath.XPathNavigator
return bool

MoveToPreviousSibling() public method

Reposition the navigator on the previous non-attribute sibling with a matching type.
public MoveToPreviousSibling ( XPathNavigator navigator ) : bool
navigator System.Xml.XPath.XPathNavigator
return bool