C# Class Encog.Util.XMLUtil

Afficher le fichier Open project: encog/encog-silverlight-core

Méthodes publiques

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

Méthode Description
XMLUtil ( ) : System

Private constructor.

Method Details

AddAttribute() public static méthode

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.
Résultat void

CreateProperty() public static méthode

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.
Résultat System.Xml.XmlNode

FindElement() public static méthode

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.
Résultat System.Xml.XmlElement

FindElementAsInt() public static méthode

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.
Résultat int

FindElementAsLong() public static méthode

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.
Résultat long

FindElementAsString() public static méthode

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.
Résultat String

GetElementValue() public static méthode

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