FileExtensions.

LoadXml(IFile) Method

Summary

Loads an xml file

Syntax

public static XDocument LoadXml(this IFile xmlFile)

Examples

Load an xml document
XDocument doc = GetFile("./proj.csproj").LoadXml();

Parameters

Name Type Description
xmlFile IFile the xml file path

Return Value

Type Description
XDocument An XDocument