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