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

Afficher le fichier Open project: nHydrate/nHydrate

Méthodes publiques

Méthode 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

Méthode Description
XmlHelper ( ) : System

Method Details

AddAttribute() public static méthode

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

AddAttribute() public static méthode

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

AddAttribute() public static méthode

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

AddAttribute() public static méthode

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

AddAttribute() public static méthode

public static AddAttribute ( XmlNode element, string name, Guid value ) : XmlAttribute
element XmlNode
name string
value Guid
Résultat XmlAttribute

AddAttribute() public static méthode

public static AddAttribute ( XmlNode element, string name, bool value ) : XmlAttribute
element XmlNode
name string
value bool
Résultat XmlAttribute

AddAttribute() public static méthode

public static AddAttribute ( XmlNode element, string name, double value ) : XmlAttribute
element XmlNode
name string
value double
Résultat XmlAttribute

AddAttribute() public static méthode

public static AddAttribute ( XmlNode element, string name, int value ) : XmlAttribute
element XmlNode
name string
value int
Résultat XmlAttribute

AddAttribute() public static méthode

public static AddAttribute ( XmlNode node, string name, string value ) : XmlAttribute
node XmlNode
name string
value string
Résultat XmlAttribute

AddCData() public static méthode

public static AddCData ( XmlElement element, string name, string value ) : XmlNode
element XmlElement
name string
value string
Résultat XmlNode

AddElement() public static méthode

public static AddElement ( XmlDocument document, string name ) : XmlNode
document XmlDocument
name string
Résultat XmlNode

AddElement() public static méthode

public static AddElement ( XmlDocument document, string name, string value ) : XmlNode
document XmlDocument
name string
value string
Résultat XmlNode

AddElement() public static méthode

public static AddElement ( XmlElement element, string name ) : XmlNode
element XmlElement
name string
Résultat XmlNode

AddElement() public static méthode

public static AddElement ( XmlElement element, string name, string value ) : XmlNode
element XmlElement
name string
value string
Résultat XmlNode

AddIndent() public static méthode

public static AddIndent ( XmlElement element, int tabs ) : void
element XmlElement
tabs int
Résultat void

AddLineBreak() public static méthode

public static AddLineBreak ( XmlElement element ) : void
element XmlElement
Résultat void

CreateXPathNavigator() public static méthode

public static CreateXPathNavigator ( XmlReader reader ) : XPathNavigator
reader XmlReader
Résultat XPathNavigator

GetAttributeValue() public static méthode

public static GetAttributeValue ( XmlNode element, string attributeName, Guid defaultValue ) : Guid
element XmlNode
attributeName string
defaultValue Guid
Résultat Guid

GetAttributeValue() public static méthode

public static GetAttributeValue ( XmlNode element, string attributeName, bool defaultValue ) : bool
element XmlNode
attributeName string
defaultValue bool
Résultat bool

GetAttributeValue() public static méthode

public static GetAttributeValue ( XmlNode element, string attributeName, double defaultValue ) : double
element XmlNode
attributeName string
defaultValue double
Résultat double

GetAttributeValue() public static méthode

public static GetAttributeValue ( XmlNode element, string attributeName, int defaultValue ) : int
element XmlNode
attributeName string
defaultValue int
Résultat int

GetAttributeValue() public static méthode

public static GetAttributeValue ( XmlNode element, string attributeName, string defaultValue ) : string
element XmlNode
attributeName string
defaultValue string
Résultat string

GetElement() public static méthode

public static GetElement ( XmlElement parentElement, string tagName ) : XmlElement
parentElement XmlElement
tagName string
Résultat XmlElement

GetIterator() public static méthode

public static GetIterator ( XPathNavigator navigator, string xPath ) : XPathNodeIterator
navigator XPathNavigator
xPath string
Résultat XPathNodeIterator

GetNode() public static méthode

public static GetNode ( XmlNode xmlNode, string XPath ) : XmlNode
xmlNode XmlNode
XPath string
Résultat XmlNode

GetNodeValue() public static méthode

public static GetNodeValue ( XmlDocument document, string XPath, string defaultValue ) : string
document XmlDocument
XPath string
defaultValue string
Résultat string

GetNodeValue() public static méthode

public static GetNodeValue ( XmlNode element, string XPath, string defaultValue ) : string
element XmlNode
XPath string
defaultValue string
Résultat string

GetNodeXML() public static méthode

public static GetNodeXML ( XmlDocument document, string XPath, string defaultValue ) : string
document XmlDocument
XPath string
defaultValue string
Résultat string

GetNodeXML() public static méthode

public static GetNodeXML ( XmlDocument document, string XPath, string defaultValue, bool useOuter ) : string
document XmlDocument
XPath string
defaultValue string
useOuter bool
Résultat string

GetXmlReader() public static méthode

public static GetXmlReader ( FileInfo fileInfo ) : XmlReader
fileInfo FileInfo
Résultat XmlReader

RemoveAttribute() public static méthode

public static RemoveAttribute ( XmlElement element, string attributeName ) : void
element XmlElement
attributeName string
Résultat void

RemoveElement() public static méthode

public static RemoveElement ( XmlDocument document, string XPath ) : void
document XmlDocument
XPath string
Résultat void

RemoveElement() public static méthode

public static RemoveElement ( XmlElement element ) : void
element XmlElement
Résultat void

UpdateAttribute() public static méthode

public static UpdateAttribute ( XmlElement element, string attributeName, Single newValue ) : void
element XmlElement
attributeName string
newValue Single
Résultat void

UpdateAttribute() public static méthode

public static UpdateAttribute ( XmlElement element, string attributeName, bool newValue ) : void
element XmlElement
attributeName string
newValue bool
Résultat void

UpdateAttribute() public static méthode

public static UpdateAttribute ( XmlElement element, string attributeName, double newValue ) : void
element XmlElement
attributeName string
newValue double
Résultat void

UpdateAttribute() public static méthode

public static UpdateAttribute ( XmlElement element, string attributeName, int newValue ) : void
element XmlElement
attributeName string
newValue int
Résultat void

UpdateAttribute() public static méthode

public static UpdateAttribute ( XmlElement element, string attributeName, string newValue ) : void
element XmlElement
attributeName string
newValue string
Résultat void

UpdateElement() public static méthode

public static UpdateElement ( XmlDocument &document, string Xpath, string newValue ) : void
document XmlDocument
Xpath string
newValue string
Résultat void

UpdateElement() public static méthode

public static UpdateElement ( XmlElement element, string newValue ) : void
element XmlElement
newValue string
Résultat void