Show / Hide Table of Contents

    Class XPathQueryManager

    This class provides an easy-to-use interface for complex (parameterized) XPath queries.

    Inheritance
    System.Object
    XPathQueryManager
    Implements
    IXPathQueryManager
    Namespace: Mapsui.Providers.Wfs.Xml
    Assembly: Mapsui.Desktop.dll
    Syntax
    public class XPathQueryManager : object, IXPathQueryManager

    Constructors

    | Improve this Doc View Source

    XPathQueryManager()

    Initializes a new instance of the XPathQueryManager class.

    Declaration
    public XPathQueryManager()
    | Improve this Doc View Source

    XPathQueryManager(HttpClientUtil)

    Initializes a new instance of the XPathQueryManager class.

    Declaration
    public XPathQueryManager(HttpClientUtil httpClientUtil)
    Parameters
    Type Name Description
    HttpClientUtil httpClientUtil

    A configured HttpClientUtil instance for performing web requests

    | Improve this Doc View Source

    XPathQueryManager(Stream)

    Initializes a new instance of the XPathQueryManager class.

    Declaration
    public XPathQueryManager(Stream documentStream)
    Parameters
    Type Name Description
    Stream documentStream

    A Stream with XML data

    | Improve this Doc View Source

    XPathQueryManager(Byte[])

    Initializes a new instance of the XPathQueryManager class.

    Declaration
    public XPathQueryManager(byte[] document)
    Parameters
    Type Name Description
    System.Byte[] document

    A byte array with XML data

    | Improve this Doc View Source

    XPathQueryManager(String)

    Initializes a new instance of the XPathQueryManager class.

    Declaration
    public XPathQueryManager(string fileName)
    Parameters
    Type Name Description
    System.String fileName
    | Improve this Doc View Source

    XPathQueryManager(XPathDocument)

    Initializes a new instance of the XPathQueryManager class.

    Declaration
    public XPathQueryManager(XPathDocument xPathDoc)
    Parameters
    Type Name Description
    XPathDocument xPathDoc

    An XmlDocument instance

    Methods

    | Improve this Doc View Source

    AddNamespace(String, String)

    This method adds a namespace for XPath queries.

    Declaration
    public void AddNamespace(string prefix, string ns)
    Parameters
    Type Name Description
    System.String prefix

    The namespace prefix

    System.String ns

    The namespace URI

    | Improve this Doc View Source

    Clone()

    This method returns a clone of the current instance. The cloned instance operates on the same (read-only) XmlDocument instance.

    Declaration
    public IXPathQueryManager Clone()
    Returns
    Type Description
    IXPathQueryManager
    | Improve this Doc View Source

    Compile(String)

    This method compiles an XPath string.

    Declaration
    public XPathExpression Compile(string xPath)
    Parameters
    Type Name Description
    System.String xPath

    The XPath string

    Returns
    Type Description
    XPathExpression

    A compiled XPath expression

    | Improve this Doc View Source

    GetIterator(XPathExpression)

    This method returns an XPathNodeIterator instance positioned at the nodes the XPath expression addresses.

    Declaration
    public XPathNodeIterator GetIterator(XPathExpression xPath)
    Parameters
    Type Name Description
    XPathExpression xPath

    The compiled XPath expression

    Returns
    Type Description
    XPathNodeIterator
    | Improve this Doc View Source

    GetIterator(XPathExpression, DictionaryEntry[])

    This method returns an XPathNodeIterator instance positioned at the nodes the XPath expression addresses.

    Declaration
    public XPathNodeIterator GetIterator(XPathExpression xPath, DictionaryEntry[] queryParameters)
    Parameters
    Type Name Description
    XPathExpression xPath

    The compiled XPath expression

    DictionaryEntry[] queryParameters

    Parameters for the compiled XPath expression

    Returns
    Type Description
    XPathNodeIterator
    | Improve this Doc View Source

    GetValueFromNode(XPathExpression, DictionaryEntry[])

    This method returns the value of the first node the XPath expression addresses.

    Declaration
    public string GetValueFromNode(XPathExpression xPath, DictionaryEntry[] queryParameters = null)
    Parameters
    Type Name Description
    XPathExpression xPath

    The compiled XPath expression

    DictionaryEntry[] queryParameters

    Parameters for the compiled XPath expression

    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetValuesFromNodes(XPathExpression)

    This method returns a collection of the values of all nodes the XPath expression addresses.

    Declaration
    public List<string> GetValuesFromNodes(XPathExpression xPath)
    Parameters
    Type Name Description
    XPathExpression xPath

    The compiled XPath expression

    Returns
    Type Description
    List<System.String>
    | Improve this Doc View Source

    GetValuesFromNodes(XPathExpression, DictionaryEntry[])

    This method returns a collection of the values of all nodes the XPath expression addresses.

    Declaration
    public List<string> GetValuesFromNodes(XPathExpression xPath, DictionaryEntry[] queryParameters)
    Parameters
    Type Name Description
    XPathExpression xPath

    The compiled XPath expression

    DictionaryEntry[] queryParameters

    Parameters for the compiled XPath expression

    Returns
    Type Description
    List<System.String>
    | Improve this Doc View Source

    GetXPathQueryManagerInContext(XPathExpression, DictionaryEntry[])

    This method returns an instance of XPathQueryManager in the context of the first node the XPath expression addresses.

    Declaration
    public IXPathQueryManager GetXPathQueryManagerInContext(XPathExpression xPath, DictionaryEntry[] queryParameters = null)
    Parameters
    Type Name Description
    XPathExpression xPath

    The compiled XPath expression

    DictionaryEntry[] queryParameters

    Parameters for the compiled XPath expression

    Returns
    Type Description
    IXPathQueryManager
    | Improve this Doc View Source

    ResetNamespaces()

    This method deletes the current namespace context.

    Declaration
    public void ResetNamespaces()
    | Improve this Doc View Source

    SetDocumentToParse(HttpClientUtil)

    Sets a new XML document.

    Declaration
    public void SetDocumentToParse(HttpClientUtil httpClientUtil)
    Parameters
    Type Name Description
    HttpClientUtil httpClientUtil

    A configured HttpClientUtil instance for performing web requests

    | Improve this Doc View Source

    SetDocumentToParse(Stream)

    Sets a new XML document.

    Declaration
    public void SetDocumentToParse(Stream documentStream)
    Parameters
    Type Name Description
    Stream documentStream

    A Stream with XML data

    | Improve this Doc View Source

    SetDocumentToParse(Byte[])

    Sets a new XML document.

    Declaration
    public void SetDocumentToParse(byte[] document)
    Parameters
    Type Name Description
    System.Byte[] document

    A byte array with XML data

    | Improve this Doc View Source

    SetDocumentToParse(String)

    Sets a new XmlDocument

    Declaration
    public void SetDocumentToParse(string fileName)
    Parameters
    Type Name Description
    System.String fileName

    Implements

    IXPathQueryManager
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX