C# 클래스 Encog.Util.XMLUtil

파일 보기 프로젝트 열기: encog/encog-silverlight-core

공개 메소드들

메소드 설명
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