XmlUtils.LoadXmlElement method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Xml
Assembly Skybrud.Essentials.dll

LoadXmlElement(string)

Static

Loads the XML document at specified path and returns it as an instance of XElement .

public static XElement LoadXmlElement(string path)

Parameters

path String

The path to the XML document.

Returns

An instance of XElement .

LoadXmlElement<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 LoadXmlElement<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 XElement .

Returns

T

An instance of T representing the XML element.