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

Filters any non-element and any element with a non-matching local name or namespace uri.
Inheritance: XmlNavigatorFilter
Exibir arquivo Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
Create ( string localName, string namespaceUri ) : XmlNavigatorFilter

Return an XmlNavigatorFilter that skips over nodes that do not match the specified name.

IsFiltered ( XPathNavigator navigator ) : bool

Return false if the navigator is positioned on an element with a matching name.

MoveToContent ( XPathNavigator navigator ) : bool

Reposition the navigator on the first element child with a matching name.

MoveToFollowing ( XPathNavigator navigator, XPathNavigator navEnd ) : bool

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

MoveToFollowingSibling ( XPathNavigator navigator ) : bool

Reposition the navigator on the next element sibling with a matching name.

MoveToNextContent ( XPathNavigator navigator ) : bool

Reposition the navigator on the next element child with a matching name.

MoveToPreviousSibling ( XPathNavigator navigator ) : bool

Reposition the navigator on the previous element sibling with a matching name.

Private Methods

Method Description
XmlNavNameFilter ( string localName, string namespaceUri ) : System.Xml

Keep only elements with name = localName, namespaceUri.

Method Details

Create() public static method

Return an XmlNavigatorFilter that skips over nodes that do not match the specified name.
public static Create ( string localName, string namespaceUri ) : XmlNavigatorFilter
localName string
namespaceUri string
return XmlNavigatorFilter

IsFiltered() public method

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

MoveToContent() public method

Reposition the navigator on the first element child with a matching name.
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 name.
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 element sibling with a matching name.
public MoveToFollowingSibling ( XPathNavigator navigator ) : bool
navigator System.Xml.XPath.XPathNavigator
return bool

MoveToNextContent() public method

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

MoveToPreviousSibling() public method

Reposition the navigator on the previous element sibling with a matching name.
public MoveToPreviousSibling ( XPathNavigator navigator ) : bool
navigator System.Xml.XPath.XPathNavigator
return bool