C# Class openXDAManager.XmlExtensions

Exibir arquivo Open project: GridProtectionAlliance/openXDA

Public Methods

Method Description
AddOrUpdateAttribute ( this element, string name, string value ) : void
GetOrAddElement ( this container, string elementName ) : System.Xml.Linq.XElement
GetOrAddSetting ( this container, string settingName ) : System.Xml.Linq.XElement

Method Details

AddOrUpdateAttribute() public static method

public static AddOrUpdateAttribute ( this element, string name, string value ) : void
element this
name string
value string
return void

GetOrAddElement() public static method

public static GetOrAddElement ( this container, string elementName ) : System.Xml.Linq.XElement
container this
elementName string
return System.Xml.Linq.XElement

GetOrAddSetting() public static method

public static GetOrAddSetting ( this container, string settingName ) : System.Xml.Linq.XElement
container this
settingName string
return System.Xml.Linq.XElement