C# Class Encog.Util.XMLUtil

ファイルを表示 Open project: encog/encog-silverlight-core

Public Methods

Method Description
AddAttribute ( XmlNode e, String name, String value_ren ) : void

Add the specified attribute.

CreateProperty ( XmlDocument doc, String name, String value_ren ) : XmlNode

Create a property element. Do not append it though!

FindElement ( XmlElement e, String find ) : XmlElement

Find a child element.

FindElementAsInt ( XmlElement e, String find, int def ) : int

Find an element, return as an int.

FindElementAsLong ( XmlElement e, String find, long def ) : long

Find an element, return as a long.

FindElementAsString ( XmlElement e, String find ) : String

Find an element, return as a string.

GetElementValue ( XmlElement e ) : String

Get the specified element's text value.

Private Methods

Method Description
XMLUtil ( ) : System

Private constructor.

Method Details

AddAttribute() public static method

Add the specified attribute.
public static AddAttribute ( XmlNode e, String name, String value_ren ) : void
e System.Xml.XmlNode The node to add the attribute to.
name String The name of the attribute.
value_ren String The value of the attribute.
return void

CreateProperty() public static method

Create a property element. Do not append it though!
public static CreateProperty ( XmlDocument doc, String name, String value_ren ) : XmlNode
doc System.Xml.XmlDocument The document to use.
name String The name of the property.
value_ren String The value to add to the property.
return System.Xml.XmlNode

FindElement() public static method

Find a child element.
public static FindElement ( XmlElement e, String find ) : XmlElement
e System.Xml.XmlElement The element to search.
find String The name to search for.
return System.Xml.XmlElement

FindElementAsInt() public static method

Find an element, return as an int.
public static FindElementAsInt ( XmlElement e, String find, int def ) : int
e System.Xml.XmlElement The element that searches.
find String What we are searching for.
def int The default value, if we fail to find it.
return int

FindElementAsLong() public static method

Find an element, return as a long.
public static FindElementAsLong ( XmlElement e, String find, long def ) : long
e System.Xml.XmlElement The element that searches.
find String What we are searching for.
def long The default value, if we fail to find it.
return long

FindElementAsString() public static method

Find an element, return as a string.
public static FindElementAsString ( XmlElement e, String find ) : String
e System.Xml.XmlElement The element that searches.
find String What we are searching for.
return String

GetElementValue() public static method

Get the specified element's text value.
public static GetElementValue ( XmlElement e ) : String
e System.Xml.XmlElement The element.
return String