C# Class StoryTeller.Util.XmlExtensions

Exibir arquivo Open project: storyteller/Storyteller

Public Methods

Method Description
AddComment ( this element, string text ) : void
AddElement ( this element, string name ) : XmlElement
AddElement ( this element, string name, Action action ) : XmlElement
ForEachElement ( this node, Action action ) : void
FromFile ( this document, string fileName ) : XmlDocument
SetAttributeOnChild ( this element, string childName, string attName, string attValue ) : void
With ( this node, Action action ) : XmlElement
WithAtt ( this element, string key, string attValue ) : XmlElement
WithAttributes ( this element, string text ) : XmlElement
WithFormattedText ( this element, string text ) : XmlElement
WithInnerText ( this node, string text ) : XmlElement
WithProperties ( this element, string>.Dictionary properties ) : XmlElement
WithProperties ( this element, string>.LightweightCache properties ) : XmlElement
WithRoot ( this document, string elementName ) : XmlElement
WithXmlText ( this document, string xml ) : XmlDocument
XmlFromFileWithRoot ( this fileName, string root ) : XmlDocument

Method Details

AddComment() public static method

public static AddComment ( this element, string text ) : void
element this
text string
return void

AddElement() public static method

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

AddElement() public static method

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

ForEachElement() public static method

public static ForEachElement ( this node, Action action ) : void
node this
action Action
return void

FromFile() public static method

public static FromFile ( this document, string fileName ) : XmlDocument
document this
fileName string
return System.Xml.XmlDocument

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

With() public static method

public static With ( this node, Action action ) : XmlElement
node this
action Action
return System.Xml.XmlElement

WithAtt() public static method

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

WithAttributes() public static method

public static WithAttributes ( this element, string text ) : XmlElement
element this
text string
return System.Xml.XmlElement

WithFormattedText() public static method

public static WithFormattedText ( this element, string text ) : XmlElement
element this
text string
return System.Xml.XmlElement

WithInnerText() public static method

public static WithInnerText ( this node, string text ) : XmlElement
node this
text string
return System.Xml.XmlElement

WithProperties() public static method

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

WithProperties() public static method

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

WithRoot() public static method

public static WithRoot ( this document, string elementName ) : XmlElement
document this
elementName string
return System.Xml.XmlElement

WithXmlText() public static method

public static WithXmlText ( this document, string xml ) : XmlDocument
document this
xml string
return System.Xml.XmlDocument

XmlFromFileWithRoot() public static method

public static XmlFromFileWithRoot ( this fileName, string root ) : XmlDocument
fileName this
root string
return System.Xml.XmlDocument