Class XPathNavigableConverter
This utility class is designed to make System.
Inheritance
Namespace: Cuemon.Xml.XPath
Assembly: Cuemon.Xml.dll
Syntax
public static class XPathNavigableConverter
Methods
| Improve this DocFromStream(Stream)
Converts the given stream to an System.
Declaration
public static IXPathNavigable FromStream(Stream value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The System. |
Returns
Type | Description |
---|---|
System. |
An System. |
FromStream(Stream, Boolean)
Converts the given stream to an System.
Declaration
public static IXPathNavigable FromStream(Stream value, bool leaveStreamOpen)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The System. |
System. |
leaveStreamOpen | if |
Returns
Type | Description |
---|---|
System. |
An System. |
FromString(String)
Converts the given XML string to an IXPathNavigable object using UTF-8 for the encoding.
Declaration
public static IXPathNavigable FromString(string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The XML string to be converted. |
Returns
Type | Description |
---|---|
System. |
An System. |
FromString(String, Encoding)
Converts the given XML string to an IXPathNavigable object.
Declaration
public static IXPathNavigable FromString(string value, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The XML string to be converted. |
System. |
encoding | The preferred encoding to use. |
Returns
Type | Description |
---|---|
System. |
An System. |
FromUri(Uri)
Converts the given System.
Declaration
public static IXPathNavigable FromUri(Uri value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The System. |
Returns
Type | Description |
---|---|
System. |
An System. |
FromXmlReader(XmlReader)
Converts the given XmlReader to an IXPathNavigable object.
Declaration
public static IXPathNavigable FromXmlReader(XmlReader value)
Parameters
Type | Name | Description |
---|---|---|
System. |
value | The XmlReader to be converted. |
Returns
Type | Description |
---|---|
System. |
An System. |