Show / Hide Table of Contents

Class XmlUtil

Loads XElement and XDocument in a safer way.

public static class XmlUtil

Namespace: Au.More
Assembly: Au.dll
Inheritance
object
XmlUtil

Methods

Name Description
LoadDoc(string, LoadOptions)

Loads XML file in a safer way. Uses System.Xml.Linq.XDocument.Load and filesystem.waitIfLocked.

LoadElem(string, LoadOptions)

Loads XML file in a safer way. Uses System.Xml.Linq.XElement.Load and filesystem.waitIfLocked.

LoadElemIfExists(string, string, LoadOptions)

If XML file exists, loads it (calls XmlUtil.LoadElem), else creates new element or returns null.