XmlUtils.ParseXmlDocument method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Xml |
---|---|
Assembly | Skybrud.Essentials.dll |
ParseXmlDocument(string)
Static
Parses the specified xml
into an instance of XDocument .
public static XDocument ParseXmlDocument(string xml)
Parameters
xml
String
The XML to be parsed.
ParseXmlDocument<T>(string, Func<T, TResult>)
Static
Parses the specified xml
into an instance of XDocument , which is then
converted into an instance of T
using the specified callback
function.
public static T ParseXmlDocument<T>(string xml, Func<T, TResult> callback)
Type Parameters
T
The type of the instance to be returned.
Parameters
xml
String
The XML to be parsed.
Returns
T
An instance of T
representing the specified xml
.