C# Class FC3Editor.XmlHelper

显示文件 Open project: Azerothian/fc3editor Class Usage Examples

Public Methods

Method Description
CompareDocToFile ( XmlDocument document, string filePath, string &tmpPath ) : bool
GetCData ( XmlNode root ) : XmlCDataSection
GetElement ( XmlNode root ) : XmlElement
GetElementByName ( XmlNode root, string name ) : XmlElement
GetElements ( XmlNode root ) : IEnumerable
GetElementsByName ( XmlNode root, string name ) : IEnumerable
GetNextElement ( XmlNode element ) : XmlElement
GetPrevElement ( XmlNode element ) : XmlElement
GetRecursiveElements ( XmlNode root ) : IEnumerable
WriteToFile ( XmlNode node, string file ) : void
WriteToMemory ( XmlNode node ) : MemoryStream
WriteToString ( XmlNode node ) : string

Private Methods

Method Description
Write ( XmlNode node, TextWriter s ) : XmlTextWriter

Method Details

CompareDocToFile() public static method

public static CompareDocToFile ( XmlDocument document, string filePath, string &tmpPath ) : bool
document System.Xml.XmlDocument
filePath string
tmpPath string
return bool

GetCData() public static method

public static GetCData ( XmlNode root ) : XmlCDataSection
root System.Xml.XmlNode
return System.Xml.XmlCDataSection

GetElement() public static method

public static GetElement ( XmlNode root ) : XmlElement
root System.Xml.XmlNode
return System.Xml.XmlElement

GetElementByName() public static method

public static GetElementByName ( XmlNode root, string name ) : XmlElement
root System.Xml.XmlNode
name string
return System.Xml.XmlElement

GetElements() public static method

public static GetElements ( XmlNode root ) : IEnumerable
root System.Xml.XmlNode
return IEnumerable

GetElementsByName() public static method

public static GetElementsByName ( XmlNode root, string name ) : IEnumerable
root System.Xml.XmlNode
name string
return IEnumerable

GetNextElement() public static method

public static GetNextElement ( XmlNode element ) : XmlElement
element System.Xml.XmlNode
return System.Xml.XmlElement

GetPrevElement() public static method

public static GetPrevElement ( XmlNode element ) : XmlElement
element System.Xml.XmlNode
return System.Xml.XmlElement

GetRecursiveElements() public static method

public static GetRecursiveElements ( XmlNode root ) : IEnumerable
root System.Xml.XmlNode
return IEnumerable

WriteToFile() public static method

public static WriteToFile ( XmlNode node, string file ) : void
node System.Xml.XmlNode
file string
return void

WriteToMemory() public static method

public static WriteToMemory ( XmlNode node ) : MemoryStream
node System.Xml.XmlNode
return System.IO.MemoryStream

WriteToString() public static method

public static WriteToString ( XmlNode node ) : string
node System.Xml.XmlNode
return string