C# Класс StoryTeller.Util.XmlExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

AddComment() публичный статический Метод

public static AddComment ( this element, string text ) : void
element this
text string
Результат void

AddElement() публичный статический Метод

public static AddElement ( this element, string name ) : XmlElement
element this
name string
Результат System.Xml.XmlElement

AddElement() публичный статический Метод

public static AddElement ( this element, string name, Action action ) : XmlElement
element this
name string
action Action
Результат System.Xml.XmlElement

ForEachElement() публичный статический Метод

public static ForEachElement ( this node, Action action ) : void
node this
action Action
Результат void

FromFile() публичный статический Метод

public static FromFile ( this document, string fileName ) : XmlDocument
document this
fileName string
Результат System.Xml.XmlDocument

SetAttributeOnChild() публичный статический Метод

public static SetAttributeOnChild ( this element, string childName, string attName, string attValue ) : void
element this
childName string
attName string
attValue string
Результат void

With() публичный статический Метод

public static With ( this node, Action action ) : XmlElement
node this
action Action
Результат System.Xml.XmlElement

WithAtt() публичный статический Метод

public static WithAtt ( this element, string key, string attValue ) : XmlElement
element this
key string
attValue string
Результат System.Xml.XmlElement

WithAttributes() публичный статический Метод

public static WithAttributes ( this element, string text ) : XmlElement
element this
text string
Результат System.Xml.XmlElement

WithFormattedText() публичный статический Метод

public static WithFormattedText ( this element, string text ) : XmlElement
element this
text string
Результат System.Xml.XmlElement

WithInnerText() публичный статический Метод

public static WithInnerText ( this node, string text ) : XmlElement
node this
text string
Результат System.Xml.XmlElement

WithProperties() публичный статический Метод

public static WithProperties ( this element, string>.Dictionary properties ) : XmlElement
element this
properties string>.Dictionary
Результат System.Xml.XmlElement

WithProperties() публичный статический Метод

public static WithProperties ( this element, string>.LightweightCache properties ) : XmlElement
element this
properties string>.LightweightCache
Результат System.Xml.XmlElement

WithRoot() публичный статический Метод

public static WithRoot ( this document, string elementName ) : XmlElement
document this
elementName string
Результат System.Xml.XmlElement

WithXmlText() публичный статический Метод

public static WithXmlText ( this document, string xml ) : XmlDocument
document this
xml string
Результат System.Xml.XmlDocument

XmlFromFileWithRoot() публичный статический Метод

public static XmlFromFileWithRoot ( this fileName, string root ) : XmlDocument
fileName this
root string
Результат System.Xml.XmlDocument