Search Results for

    Show / Hide Table of Contents

    Class XPathQueryManager

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

    Inheritance
    object
    XPathQueryManager
    Implements
    IXPathQueryManager
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Providers.Wfs.Xml
    Assembly: Mapsui.Nts.dll
    Syntax
    public class XPathQueryManager : IXPathQueryManager

    Constructors

    | Edit this page View Source

    XPathQueryManager()

    Initializes a new instance of the XPathQueryManager class.

    Declaration
    public XPathQueryManager()
    | Edit this page 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

    | Edit this page View Source

    XPathQueryManager(byte[])

    Initializes a new instance of the XPathQueryManager class.

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

    A byte array with XML data

    | Edit this page 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

    | Edit this page View Source

    XPathQueryManager(string)

    Initializes a new instance of the XPathQueryManager class.

    Declaration
    public XPathQueryManager(string fileName)
    Parameters
    Type Name Description
    string fileName
    | Edit this page 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

    | Edit this page 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
    string prefix

    The namespace prefix

    string ns

    The namespace URI

    | Edit this page 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
    | Edit this page View Source

    Compile(string)

    This method compiles an XPath string.

    Declaration
    public XPathExpression? Compile(string xPath)
    Parameters
    Type Name Description
    string xPath

    The XPath string

    Returns
    Type Description
    XPathExpression

    A compiled XPath expression

    | Edit this page 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
    | Edit this page 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
    | Edit this page 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
    string
    | Edit this page 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<string>
    | Edit this page 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<string>
    | Edit this page 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
    | Edit this page View Source

    InitAsync()

    Init Async

    Declaration
    public Task InitAsync()
    Returns
    Type Description
    Task

    Task

    | Edit this page View Source

    ResetNamespaces()

    This method deletes the current namespace context.

    Declaration
    public void ResetNamespaces()
    | Edit this page View Source

    SetDocumentToParse(byte[])

    Sets a new XML document.

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

    A byte array with XML data

    | Edit this page 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

    | Edit this page View Source

    SetDocumentToParse(string)

    Sets a new XmlDocument

    Declaration
    public void SetDocumentToParse(string fileName)
    Parameters
    Type Name Description
    string fileName
    | Edit this page View Source

    SetDocumentToParseAsync(HttpClientUtil)

    Sets a new XML document.

    Declaration
    public Task SetDocumentToParseAsync(HttpClientUtil httpClientUtil)
    Parameters
    Type Name Description
    HttpClientUtil httpClientUtil

    A configured HttpClientUtil instance for performing web requests

    Returns
    Type Description
    Task

    Implements

    IXPathQueryManager
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX