C# Class Acme.PROJECTNAME.Install.XmlHelper

Afficher le fichier Open project: nHydrate/nHydrate

Méthodes publiques

Méthode Description
AddAttribute ( XmlElement XmlElement, string name, string value ) : XmlAttribute
AddElement ( XmlDocument XMLDocument, 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
CreateXPathNavigator ( XmlReader reader ) : XPathNavigator
GetAttribute ( XmlNode node, string attributeName, System.Guid defaultValue ) : System.Guid
GetAttribute ( XmlNode node, string attributeName, bool defaultValue ) : bool
GetAttribute ( XmlNode node, string attributeName, double defaultValue ) : double
GetAttribute ( XmlNode node, string attributeName, int defaultValue ) : int
GetAttribute ( XmlNode node, string attributeName, long defaultValue ) : long
GetAttribute ( XmlNode node, string attributeName ) : string
GetAttribute ( XmlNode node, string attributeName, string defaultValue ) : string
GetElement ( XmlElement parentElement, string tagName ) : XmlElement
GetIterator ( XPathNavigator navigator, string xPath ) : XPathNodeIterator
GetNode ( System xmlNode, string XPath ) : XmlNode
GetNode ( System xmlNode, string XPath, XmlNamespaceManager nsManager ) : XmlNode
GetNodeValue ( System element, string XPath, DateTime defaultValue ) : DateTime
GetNodeValue ( System element, string XPath, DateTime defaultValue ) : DateTime?
GetNodeValue ( System element, string XPath, Single defaultValue ) : Single
GetNodeValue ( System element, string XPath, Single defaultValue ) : Single?
GetNodeValue ( System element, string XPath, bool defaultValue ) : bool
GetNodeValue ( System element, string XPath, bool defaultValue ) : bool?
GetNodeValue ( System element, string XPath, double defaultValue ) : double
GetNodeValue ( System element, string XPath, double defaultValue ) : double?
GetNodeValue ( System element, string XPath, int defaultValue ) : int
GetNodeValue ( System element, string XPath, int defaultValue ) : int?
GetNodeValue ( System document, string XPath, XmlNamespaceManager nsManager, string defaultValue ) : string
GetNodeValue ( System document, 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 XmlElement, string attributeName, string newValue ) : void
UpdateElement ( XmlDocument &XMLDocument, 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 XmlElement, string name, string value ) : XmlAttribute
XmlElement System.Xml.XmlElement
name string
value string
Résultat System.Xml.XmlAttribute

AddElement() public static méthode

public static AddElement ( XmlDocument XMLDocument, string name ) : XmlNode
XMLDocument System.Xml.XmlDocument
name string
Résultat System.Xml.XmlNode

AddElement() public static méthode

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

AddElement() public static méthode

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

AddElement() public static méthode

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

CreateXPathNavigator() public static méthode

public static CreateXPathNavigator ( XmlReader reader ) : XPathNavigator
reader XmlReader
Résultat System.Xml.XPath.XPathNavigator

GetAttribute() public static méthode

public static GetAttribute ( XmlNode node, string attributeName, System.Guid defaultValue ) : System.Guid
node System.Xml.XmlNode
attributeName string
defaultValue System.Guid
Résultat System.Guid

GetAttribute() public static méthode

public static GetAttribute ( XmlNode node, string attributeName, bool defaultValue ) : bool
node System.Xml.XmlNode
attributeName string
defaultValue bool
Résultat bool

GetAttribute() public static méthode

public static GetAttribute ( XmlNode node, string attributeName, double defaultValue ) : double
node System.Xml.XmlNode
attributeName string
defaultValue double
Résultat double

GetAttribute() public static méthode

public static GetAttribute ( XmlNode node, string attributeName, int defaultValue ) : int
node System.Xml.XmlNode
attributeName string
defaultValue int
Résultat int

GetAttribute() public static méthode

public static GetAttribute ( XmlNode node, string attributeName, long defaultValue ) : long
node System.Xml.XmlNode
attributeName string
defaultValue long
Résultat long

GetAttribute() public static méthode

public static GetAttribute ( XmlNode node, string attributeName ) : string
node System.Xml.XmlNode
attributeName string
Résultat string

GetAttribute() public static méthode

public static GetAttribute ( XmlNode node, string attributeName, string defaultValue ) : string
node System.Xml.XmlNode
attributeName string
defaultValue string
Résultat string

GetElement() public static méthode

public static GetElement ( XmlElement parentElement, string tagName ) : XmlElement
parentElement System.Xml.XmlElement
tagName string
Résultat System.Xml.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 ( System xmlNode, string XPath ) : XmlNode
xmlNode System
XPath string
Résultat System.Xml.XmlNode

GetNode() public static méthode

public static GetNode ( System xmlNode, string XPath, XmlNamespaceManager nsManager ) : XmlNode
xmlNode System
XPath string
nsManager XmlNamespaceManager
Résultat System.Xml.XmlNode

GetNodeValue() public static méthode

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

GetNodeValue() public static méthode

public static GetNodeValue ( System element, string XPath, DateTime defaultValue ) : DateTime?
element System
XPath string
defaultValue DateTime
Résultat DateTime?

GetNodeValue() public static méthode

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

GetNodeValue() public static méthode

public static GetNodeValue ( System element, string XPath, Single defaultValue ) : Single?
element System
XPath string
defaultValue Single
Résultat Single?

GetNodeValue() public static méthode

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

GetNodeValue() public static méthode

public static GetNodeValue ( System element, string XPath, bool defaultValue ) : bool?
element System
XPath string
defaultValue bool
Résultat bool?

GetNodeValue() public static méthode

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

GetNodeValue() public static méthode

public static GetNodeValue ( System element, string XPath, double defaultValue ) : double?
element System
XPath string
defaultValue double
Résultat double?

GetNodeValue() public static méthode

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

GetNodeValue() public static méthode

public static GetNodeValue ( System element, string XPath, int defaultValue ) : int?
element System
XPath string
defaultValue int
Résultat int?

GetNodeValue() public static méthode

public static GetNodeValue ( System document, string XPath, XmlNamespaceManager nsManager, string defaultValue ) : string
document System
XPath string
nsManager XmlNamespaceManager
defaultValue string
Résultat string

GetNodeValue() public static méthode

public static GetNodeValue ( System document, string XPath, string defaultValue ) : string
document System
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 XmlElement, string attributeName, string newValue ) : void
XmlElement XmlElement
attributeName string
newValue string
Résultat void

UpdateElement() public static méthode

public static UpdateElement ( XmlDocument &XMLDocument, string Xpath, string newValue ) : void
XMLDocument 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