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

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

IsFiltered() public méthode

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

MoveToContent() public méthode

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

MoveToFollowing() public méthode

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
Résultat bool

MoveToFollowingSibling() public méthode

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

MoveToNextContent() public méthode

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

MoveToPreviousSibling() public méthode

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