C# Class nHydrate.Generator.Common.Util.XmlHelper

Datei anzeigen Open project: nHydrate/nHydrate

Public Methods

Method Description
AddAttribute ( XmlElement element, string name, bool value ) : XmlAttribute
AddAttribute ( XmlElement node, string name, double value ) : XmlAttribute
AddAttribute ( XmlElement node, string name, int value ) : XmlAttribute
AddAttribute ( XmlElement node, string name, string value ) : XmlAttribute
AddAttribute ( XmlNode element, string name, Guid value ) : XmlAttribute
AddAttribute ( XmlNode element, string name, bool value ) : XmlAttribute
AddAttribute ( XmlNode element, string name, double value ) : XmlAttribute
AddAttribute ( XmlNode element, string name, int value ) : XmlAttribute
AddAttribute ( XmlNode node, string name, string value ) : XmlAttribute
AddCData ( XmlElement element, string name, string value ) : XmlNode
AddElement ( XmlDocument document, string name ) : XmlNode
AddElement ( XmlDocument document, string name, string value ) : XmlNode
AddElement ( XmlElement element, string name ) : XmlNode
AddElement ( XmlElement element, string name, string value ) : XmlNode
AddIndent ( XmlElement element, int tabs ) : void
AddLineBreak ( XmlElement element ) : void
CreateXPathNavigator ( XmlReader reader ) : XPathNavigator
GetAttributeValue ( XmlNode element, string attributeName, Guid defaultValue ) : Guid
GetAttributeValue ( XmlNode element, string attributeName, bool defaultValue ) : bool
GetAttributeValue ( XmlNode element, string attributeName, double defaultValue ) : double
GetAttributeValue ( XmlNode element, string attributeName, int defaultValue ) : int
GetAttributeValue ( XmlNode element, string attributeName, string defaultValue ) : string
GetElement ( XmlElement parentElement, string tagName ) : XmlElement
GetIterator ( XPathNavigator navigator, string xPath ) : XPathNodeIterator
GetNode ( XmlNode xmlNode, string XPath ) : XmlNode
GetNodeValue ( XmlDocument document, string XPath, string defaultValue ) : string
GetNodeValue ( XmlNode element, string XPath, string defaultValue ) : string
GetNodeXML ( XmlDocument document, string XPath, string defaultValue ) : string
GetNodeXML ( XmlDocument document, string XPath, string defaultValue, bool useOuter ) : string
GetXmlReader ( FileInfo fileInfo ) : XmlReader
RemoveAttribute ( XmlElement element, string attributeName ) : void
RemoveElement ( XmlDocument document, string XPath ) : void
RemoveElement ( XmlElement element ) : void
UpdateAttribute ( XmlElement element, string attributeName, Single newValue ) : void
UpdateAttribute ( XmlElement element, string attributeName, bool newValue ) : void
UpdateAttribute ( XmlElement element, string attributeName, double newValue ) : void
UpdateAttribute ( XmlElement element, string attributeName, int newValue ) : void
UpdateAttribute ( XmlElement element, string attributeName, string newValue ) : void
UpdateElement ( XmlDocument &document, string Xpath, string newValue ) : void
UpdateElement ( XmlElement element, string newValue ) : void

Private Methods

Method Description
XmlHelper ( ) : System

Method Details

AddAttribute() public static method

public static AddAttribute ( XmlElement element, string name, bool value ) : XmlAttribute
element System.Xml.XmlElement
name string
value bool
return System.Xml.XmlAttribute

AddAttribute() public static method

public static AddAttribute ( XmlElement node, string name, double value ) : XmlAttribute
node System.Xml.XmlElement
name string
value double
return System.Xml.XmlAttribute

AddAttribute() public static method

public static AddAttribute ( XmlElement node, string name, int value ) : XmlAttribute
node System.Xml.XmlElement
name string
value int
return System.Xml.XmlAttribute

AddAttribute() public static method

public static AddAttribute ( XmlElement node, string name, string value ) : XmlAttribute
node System.Xml.XmlElement
name string
value string
return System.Xml.XmlAttribute

AddAttribute() public static method

public static AddAttribute ( XmlNode element, string name, Guid value ) : XmlAttribute
element XmlNode
name string
value Guid
return XmlAttribute

AddAttribute() public static method

public static AddAttribute ( XmlNode element, string name, bool value ) : XmlAttribute
element XmlNode
name string
value bool
return XmlAttribute

AddAttribute() public static method

public static AddAttribute ( XmlNode element, string name, double value ) : XmlAttribute
element XmlNode
name string
value double
return XmlAttribute

AddAttribute() public static method

public static AddAttribute ( XmlNode element, string name, int value ) : XmlAttribute
element XmlNode
name string
value int
return XmlAttribute

AddAttribute() public static method

public static AddAttribute ( XmlNode node, string name, string value ) : XmlAttribute
node XmlNode
name string
value string
return XmlAttribute

AddCData() public static method

public static AddCData ( XmlElement element, string name, string value ) : XmlNode
element XmlElement
name string
value string
return XmlNode

AddElement() public static method

public static AddElement ( XmlDocument document, string name ) : XmlNode
document XmlDocument
name string
return XmlNode

AddElement() public static method

public static AddElement ( XmlDocument document, string name, string value ) : XmlNode
document XmlDocument
name string
value string
return XmlNode

AddElement() public static method

public static AddElement ( XmlElement element, string name ) : XmlNode
element XmlElement
name string
return XmlNode

AddElement() public static method

public static AddElement ( XmlElement element, string name, string value ) : XmlNode
element XmlElement
name string
value string
return XmlNode

AddIndent() public static method

public static AddIndent ( XmlElement element, int tabs ) : void
element XmlElement
tabs int
return void

AddLineBreak() public static method

public static AddLineBreak ( XmlElement element ) : void
element XmlElement
return void

CreateXPathNavigator() public static method

public static CreateXPathNavigator ( XmlReader reader ) : XPathNavigator
reader XmlReader
return XPathNavigator

GetAttributeValue() public static method

public static GetAttributeValue ( XmlNode element, string attributeName, Guid defaultValue ) : Guid
element XmlNode
attributeName string
defaultValue Guid
return Guid

GetAttributeValue() public static method

public static GetAttributeValue ( XmlNode element, string attributeName, bool defaultValue ) : bool
element XmlNode
attributeName string
defaultValue bool
return bool

GetAttributeValue() public static method

public static GetAttributeValue ( XmlNode element, string attributeName, double defaultValue ) : double
element XmlNode
attributeName string
defaultValue double
return double

GetAttributeValue() public static method

public static GetAttributeValue ( XmlNode element, string attributeName, int defaultValue ) : int
element XmlNode
attributeName string
defaultValue int
return int

GetAttributeValue() public static method

public static GetAttributeValue ( XmlNode element, string attributeName, string defaultValue ) : string
element XmlNode
attributeName string
defaultValue string
return string

GetElement() public static method

public static GetElement ( XmlElement parentElement, string tagName ) : XmlElement
parentElement XmlElement
tagName string
return XmlElement

GetIterator() public static method

public static GetIterator ( XPathNavigator navigator, string xPath ) : XPathNodeIterator
navigator XPathNavigator
xPath string
return XPathNodeIterator

GetNode() public static method

public static GetNode ( XmlNode xmlNode, string XPath ) : XmlNode
xmlNode XmlNode
XPath string
return XmlNode

GetNodeValue() public static method

public static GetNodeValue ( XmlDocument document, string XPath, string defaultValue ) : string
document XmlDocument
XPath string
defaultValue string
return string

GetNodeValue() public static method

public static GetNodeValue ( XmlNode element, string XPath, string defaultValue ) : string
element XmlNode
XPath string
defaultValue string
return string

GetNodeXML() public static method

public static GetNodeXML ( XmlDocument document, string XPath, string defaultValue ) : string
document XmlDocument
XPath string
defaultValue string
return string

GetNodeXML() public static method

public static GetNodeXML ( XmlDocument document, string XPath, string defaultValue, bool useOuter ) : string
document XmlDocument
XPath string
defaultValue string
useOuter bool
return string

GetXmlReader() public static method

public static GetXmlReader ( FileInfo fileInfo ) : XmlReader
fileInfo FileInfo
return XmlReader

RemoveAttribute() public static method

public static RemoveAttribute ( XmlElement element, string attributeName ) : void
element XmlElement
attributeName string
return void

RemoveElement() public static method

public static RemoveElement ( XmlDocument document, string XPath ) : void
document XmlDocument
XPath string
return void

RemoveElement() public static method

public static RemoveElement ( XmlElement element ) : void
element XmlElement
return void

UpdateAttribute() public static method

public static UpdateAttribute ( XmlElement element, string attributeName, Single newValue ) : void
element XmlElement
attributeName string
newValue Single
return void

UpdateAttribute() public static method

public static UpdateAttribute ( XmlElement element, string attributeName, bool newValue ) : void
element XmlElement
attributeName string
newValue bool
return void

UpdateAttribute() public static method

public static UpdateAttribute ( XmlElement element, string attributeName, double newValue ) : void
element XmlElement
attributeName string
newValue double
return void

UpdateAttribute() public static method

public static UpdateAttribute ( XmlElement element, string attributeName, int newValue ) : void
element XmlElement
attributeName string
newValue int
return void

UpdateAttribute() public static method

public static UpdateAttribute ( XmlElement element, string attributeName, string newValue ) : void
element XmlElement
attributeName string
newValue string
return void

UpdateElement() public static method

public static UpdateElement ( XmlDocument &document, string Xpath, string newValue ) : void
document XmlDocument
Xpath string
newValue string
return void

UpdateElement() public static method

public static UpdateElement ( XmlElement element, string newValue ) : void
element XmlElement
newValue string
return void