C# Class Acme.PROJECTNAME.Install.XmlHelper

ファイルを表示 Open project: nHydrate/nHydrate

Public Methods

Method 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

Method Description
XmlHelper ( ) : System

Method Details

AddAttribute() public static method

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

AddElement() public static method

public static AddElement ( XmlDocument XMLDocument, string name ) : XmlNode
XMLDocument System.Xml.XmlDocument
name string
return System.Xml.XmlNode

AddElement() public static method

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

AddElement() public static method

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

AddElement() public static method

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

CreateXPathNavigator() public static method

public static CreateXPathNavigator ( XmlReader reader ) : XPathNavigator
reader XmlReader
return System.Xml.XPath.XPathNavigator

GetAttribute() public static method

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

GetAttribute() public static method

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

GetAttribute() public static method

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

GetAttribute() public static method

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

GetAttribute() public static method

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

GetAttribute() public static method

public static GetAttribute ( XmlNode node, string attributeName ) : string
node System.Xml.XmlNode
attributeName string
return string

GetAttribute() public static method

public static GetAttribute ( XmlNode node, string attributeName, string defaultValue ) : string
node System.Xml.XmlNode
attributeName string
defaultValue string
return string

GetElement() public static method

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

GetNode() public static method

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

GetNodeValue() public static method

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

GetNodeValue() public static method

public static GetNodeValue ( System element, string XPath, DateTime defaultValue ) : DateTime?
element System
XPath string
defaultValue DateTime
return DateTime?

GetNodeValue() public static method

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

GetNodeValue() public static method

public static GetNodeValue ( System element, string XPath, Single defaultValue ) : Single?
element System
XPath string
defaultValue Single
return Single?

GetNodeValue() public static method

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

GetNodeValue() public static method

public static GetNodeValue ( System element, string XPath, bool defaultValue ) : bool?
element System
XPath string
defaultValue bool
return bool?

GetNodeValue() public static method

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

GetNodeValue() public static method

public static GetNodeValue ( System element, string XPath, double defaultValue ) : double?
element System
XPath string
defaultValue double
return double?

GetNodeValue() public static method

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

GetNodeValue() public static method

public static GetNodeValue ( System element, string XPath, int defaultValue ) : int?
element System
XPath string
defaultValue int
return int?

GetNodeValue() public static method

public static GetNodeValue ( System document, string XPath, XmlNamespaceManager nsManager, string defaultValue ) : string
document System
XPath string
nsManager XmlNamespaceManager
defaultValue string
return string

GetNodeValue() public static method

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

UpdateElement() public static method

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