IXmlNodeSelector IXmlNodeSelector IXmlNodeSelector IXmlNodeSelector Interface

Encapsulates the methods needed to execute XPath queries on an XML DOM tree or subtree.

Syntax

Declaration

public interface IXmlNodeSelectorpublic interface IXmlNodeSelectorPublic Interface IXmlNodeSelector

Methods summary

Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList.

Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList.

Applies the specified pattern-matching operation to this node's context and returns the first matching node.

Applies the specified pattern-matching operation to this node's context and returns the first matching node.

Methods

  • SelectNodes(System.String)
    SelectNodes(System.String)
    SelectNodes(System.String)
    SelectNodes(System.String)

    Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList.

    public XmlNodeList SelectNodes(System.String)public XmlNodeList SelectNodes(System.String)Public Function SelectNodes(System.String) As XmlNodeList

    Parameters

    • xpath
      System.String
      System.String
      System.String
      System.String

      Specifies an XPath expression.

    Returns

  • SelectNodesNS(System.String,System.Object)
    SelectNodesNS(System.String,System.Object)
    SelectNodesNS(System.String,System.Object)
    SelectNodesNS(System.String,System.Object)

    Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList.

    public XmlNodeList SelectNodesNS(System.String,System.Object)public XmlNodeList SelectNodesNS(System.String,System.Object)Public Function SelectNodesNS(System.String,System.Object) As XmlNodeList

    Parameters

    • xpath
      System.String
      System.String
      System.String
      System.String

      Specifies an XPath expresssion.

    • namespaces
      System.Object
      System.Object
      System.Object
      System.Object

      Contains a string that specifies namespaces for use in XPath expressions when it is necessary to define new namespaces externally. Namespaces are defined in the XML style, as a space-separated list of namespace declaration attributes. You can use this property to set the default namespace as well.

    Returns

    Remarks

    Prefixes in the query are resolved using the specified namespace declarations.

  • SelectSingleNode(System.String)
    SelectSingleNode(System.String)
    SelectSingleNode(System.String)
    SelectSingleNode(System.String)

    Applies the specified pattern-matching operation to this node's context and returns the first matching node.

    public IXmlNode SelectSingleNode(System.String)public IXmlNode SelectSingleNode(System.String)Public Function SelectSingleNode(System.String) As IXmlNode

    Parameters

    • xpath
      System.String
      System.String
      System.String
      System.String

      Specifies an XPath expression.

    Returns

    • The first node that matches the given pattern-matching operation. If no nodes match the expression, the method returns a null value.

  • SelectSingleNodeNS(System.String,System.Object)
    SelectSingleNodeNS(System.String,System.Object)
    SelectSingleNodeNS(System.String,System.Object)
    SelectSingleNodeNS(System.String,System.Object)

    Applies the specified pattern-matching operation to this node's context and returns the first matching node.

    public IXmlNode SelectSingleNodeNS(System.String,System.Object)public IXmlNode SelectSingleNodeNS(System.String,System.Object)Public Function SelectSingleNodeNS(System.String,System.Object) As IXmlNode

    Parameters

    • xpath
      System.String
      System.String
      System.String
      System.String

      Specifies an XPath expression.

    • namespaces
      System.Object
      System.Object
      System.Object
      System.Object

      Contains a string that specifies the namespaces to use in XPath expressions when it is necessary to define new namespaces externally. Namespaces are defined in the XML style, as a space-separated list of namespace declaration attributes. You can use this property to set the default namespace as well.

    Returns

    • The first node that matches the given pattern-matching operation. If no nodes match the expression, this method returns a null value.

    Remarks

    Prefixes in the query are resolved using the specified namespace declarations.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.Data.Xml.Dom.dll