C# Class Mapsui.Providers.Wfs.Xml.XPathQueryManager

This class provides an easy-to-use interface for complex (parameterized) XPath queries.
Inheritance: IXPathQueryManager
Mostrar archivo Open project: pauldendulk/Mapsui Class Usage Examples

Public Methods

Method Description
AddNamespace ( string prefix, string ns ) : void

This method adds a namespace for XPath queries.

Clone ( ) : IXPathQueryManager

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

Compile ( string xPath ) : XPathExpression

This method compiles an XPath string.

GetIterator ( XPathExpression xPath ) : XPathNodeIterator

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

GetIterator ( XPathExpression xPath, DictionaryEntry queryParameters ) : XPathNodeIterator

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

GetValueFromNode ( XPathExpression xPath, DictionaryEntry queryParameters = null ) : string

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

GetValuesFromNodes ( XPathExpression xPath ) : List

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

GetValuesFromNodes ( XPathExpression xPath, DictionaryEntry queryParameters ) : List

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

GetXPathQueryManagerInContext ( XPathExpression xPath, DictionaryEntry queryParameters = null ) : IXPathQueryManager

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

ResetNamespaces ( ) : void

This method deletes the current namespace context.

SetDocumentToParse ( HttpClientUtil httpClientUtil ) : void

Sets a new XML document.

SetDocumentToParse ( Stream documentStream ) : void

Sets a new XML document.

SetDocumentToParse ( byte document ) : void

Sets a new XML document.

SetDocumentToParse ( string fileName ) : void

Sets a new XmlDocument

XPathQueryManager ( ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( HttpClientUtil httpClientUtil ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( Stream documentStream ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( XPathDocument xPathDoc ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( byte document ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( string fileName ) : System

Initializes a new instance of the XPathQueryManager class.

Private Methods

Method Description
FindXPath ( XPathExpression xPath ) : void

This method sets the inherent XPathNodeIterator instance.

InitializeCustomContext ( CustomQueryContext paramContext ) : void
InitializeXPathObjects ( Stream xmlStream ) : void

This method does some XPath specific initializations.

SetDocumentToParse ( XPathDocument xPathDoc ) : void

Sets a new XML document.

XPathQueryManager ( XPathDocument xPathDoc, XPathNavigator xNav, CustomQueryContext paramContext ) : System

Initializes a new instance of the XPathQueryManager class.

XPathQueryManager ( XPathDocument xPathDoc, XPathNodeIterator xIter, CustomQueryContext paramContext ) : System

Initializes a new instance of the XPathQueryManager class.

Method Details

AddNamespace() public method

This method adds a namespace for XPath queries.
public AddNamespace ( string prefix, string ns ) : void
prefix string The namespace prefix
ns string The namespace URI
return void

Clone() public method

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

Compile() public method

This method compiles an XPath string.
public Compile ( string xPath ) : XPathExpression
xPath string The XPath string
return System.Xml.XPath.XPathExpression

GetIterator() public method

This method returns an XPathNodeIterator instance positioned at the nodes the XPath expression addresses.
public GetIterator ( XPathExpression xPath ) : XPathNodeIterator
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
return System.Xml.XPath.XPathNodeIterator

GetIterator() public method

This method returns an XPathNodeIterator instance positioned at the nodes the XPath expression addresses.
public GetIterator ( XPathExpression xPath, DictionaryEntry queryParameters ) : XPathNodeIterator
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
queryParameters System.Collections.DictionaryEntry Parameters for the compiled XPath expression
return System.Xml.XPath.XPathNodeIterator

GetValueFromNode() public method

This method returns the value of the first node the XPath expression addresses.
public GetValueFromNode ( XPathExpression xPath, DictionaryEntry queryParameters = null ) : string
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
queryParameters System.Collections.DictionaryEntry Parameters for the compiled XPath expression
return string

GetValuesFromNodes() public method

This method returns a collection of the values of all nodes the XPath expression addresses.
public GetValuesFromNodes ( XPathExpression xPath ) : List
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
return List

GetValuesFromNodes() public method

This method returns a collection of the values of all nodes the XPath expression addresses.
public GetValuesFromNodes ( XPathExpression xPath, DictionaryEntry queryParameters ) : List
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
queryParameters System.Collections.DictionaryEntry Parameters for the compiled XPath expression
return List

GetXPathQueryManagerInContext() public method

This method returns an instance of XPathQueryManager in the context of the first node the XPath expression addresses.
public GetXPathQueryManagerInContext ( XPathExpression xPath, DictionaryEntry queryParameters = null ) : IXPathQueryManager
xPath System.Xml.XPath.XPathExpression The compiled XPath expression
queryParameters System.Collections.DictionaryEntry Parameters for the compiled XPath expression
return IXPathQueryManager

ResetNamespaces() public method

This method deletes the current namespace context.
public ResetNamespaces ( ) : void
return void

SetDocumentToParse() public method

Sets a new XML document.
public SetDocumentToParse ( HttpClientUtil httpClientUtil ) : void
httpClientUtil Mapsui.Providers.Wfs.Utilities.HttpClientUtil A configured instance for performing web requests
return void

SetDocumentToParse() public method

Sets a new XML document.
public SetDocumentToParse ( Stream documentStream ) : void
documentStream Stream A Stream with XML data
return void

SetDocumentToParse() public method

Sets a new XML document.
public SetDocumentToParse ( byte document ) : void
document byte A byte array with XML data
return void

SetDocumentToParse() public method

Sets a new XmlDocument
public SetDocumentToParse ( string fileName ) : void
fileName string
return void

XPathQueryManager() public method

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( ) : System
return System

XPathQueryManager() public method

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( HttpClientUtil httpClientUtil ) : System
httpClientUtil Mapsui.Providers.Wfs.Utilities.HttpClientUtil A configured instance for performing web requests
return System

XPathQueryManager() public method

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( Stream documentStream ) : System
documentStream Stream A Stream with XML data
return System

XPathQueryManager() public method

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( XPathDocument xPathDoc ) : System
xPathDoc System.Xml.XPath.XPathDocument An XmlDocument instance
return System

XPathQueryManager() public method

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( byte document ) : System
document byte A byte array with XML data
return System

XPathQueryManager() public method

Initializes a new instance of the XPathQueryManager class.
public XPathQueryManager ( string fileName ) : System
fileName string
return System