XmlHelpers.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 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.

Returns

An instance of XDocument .

LoadXmlDocument<T>(string, Func<T, TResult>)

Static

Loads the XML document at 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.

callback Func<T, TResult>

The callback function used for converting the loaded XDocument .

Returns

T

An instance of T representing the XML document.