C# Class NotMyself.FluentWix.Utils.XmlExtensions

Datei anzeigen Open project: NotMyself/Fluent-Wix

Public Methods

Method Description
AddElement ( this document, string name ) : System.Xml.Linq.XElement
AddElement ( this element, string name ) : XmlElement
ImportAndAppendChild ( this document, XmlDocument toImport ) : void
SetAttributeOnChild ( this element, string childName, string attName, string attValue ) : void
WithAtt ( this element, string key, bool value ) : System.Xml.Linq.XElement
WithAtt ( this element, string key, int value ) : System.Xml.Linq.XElement
WithAtt ( this element, string key, string attValue ) : System.Xml.Linq.XElement
WithProperties ( this element, string>.Dictionary properties ) : XmlElement

Method Details

AddElement() public static method

public static AddElement ( this document, string name ) : System.Xml.Linq.XElement
document this
name string
return System.Xml.Linq.XElement

AddElement() public static method

public static AddElement ( this element, string name ) : XmlElement
element this
name string
return System.Xml.XmlElement

ImportAndAppendChild() public static method

public static ImportAndAppendChild ( this document, XmlDocument toImport ) : void
document this
toImport System.Xml.XmlDocument
return void

SetAttributeOnChild() public static method

public static SetAttributeOnChild ( this element, string childName, string attName, string attValue ) : void
element this
childName string
attName string
attValue string
return void

WithAtt() public static method

public static WithAtt ( this element, string key, bool value ) : System.Xml.Linq.XElement
element this
key string
value bool
return System.Xml.Linq.XElement

WithAtt() public static method

public static WithAtt ( this element, string key, int value ) : System.Xml.Linq.XElement
element this
key string
value int
return System.Xml.Linq.XElement

WithAtt() public static method

public static WithAtt ( this element, string key, string attValue ) : System.Xml.Linq.XElement
element this
key string
attValue string
return System.Xml.Linq.XElement

WithProperties() public static method

public static WithProperties ( this element, string>.Dictionary properties ) : XmlElement
element this
properties string>.Dictionary
return System.Xml.XmlElement