C# Класс Encog.Util.XMLUtil

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
XMLUtil ( ) : System

Private constructor.

Описание методов

AddAttribute() публичный статический Метод

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.
Результат void

CreateProperty() публичный статический Метод

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.
Результат System.Xml.XmlNode

FindElement() публичный статический Метод

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.
Результат System.Xml.XmlElement

FindElementAsInt() публичный статический Метод

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.
Результат int

FindElementAsLong() публичный статический Метод

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.
Результат long

FindElementAsString() публичный статический Метод

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.
Результат String

GetElementValue() публичный статический Метод

Get the specified element's text value.
public static GetElementValue ( XmlElement e ) : String
e System.Xml.XmlElement The element.
Результат String