C# Class FairyGUI.Utils.XML

A simplest and readonly XML class
Datei anzeigen Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Methods

Method Description
Elements ( ) : XMLList
Elements ( string selector ) : XMLList
GetAttribute ( string attrName ) : string
GetAttribute ( string attrName, string defValue ) : string
GetAttributeArray ( string attrName ) : string[]
GetAttributeArray ( string attrName, char seperator ) : string[]
GetAttributeBool ( string attrName ) : bool
GetAttributeBool ( string attrName, bool defValue ) : bool
GetAttributeColor ( string attrName, Color defValue ) : Color
GetAttributeFloat ( string attrName ) : float
GetAttributeFloat ( string attrName, float defValue ) : float
GetAttributeInt ( string attrName ) : int
GetAttributeInt ( string attrName, int defValue ) : int
GetAttributeVector ( string attrName ) : Vector2
GetEnumerator ( ) : XMLList.Enumerator
GetEnumerator ( string selector ) : XMLList.Enumerator
GetNode ( string selector ) : XML
HasAttribute ( string attrName ) : bool
SetAttribute ( string attrName, string attrValue ) : void
XML ( string text ) : System

Private Methods

Method Description
Cleanup ( ) : void
Parse ( string aSource ) : void
XML ( ) : System

Method Details

Elements() public method

public Elements ( ) : XMLList
return XMLList

Elements() public method

public Elements ( string selector ) : XMLList
selector string
return XMLList

GetAttribute() public method

public GetAttribute ( string attrName ) : string
attrName string
return string

GetAttribute() public method

public GetAttribute ( string attrName, string defValue ) : string
attrName string
defValue string
return string

GetAttributeArray() public method

public GetAttributeArray ( string attrName ) : string[]
attrName string
return string[]

GetAttributeArray() public method

public GetAttributeArray ( string attrName, char seperator ) : string[]
attrName string
seperator char
return string[]

GetAttributeBool() public method

public GetAttributeBool ( string attrName ) : bool
attrName string
return bool

GetAttributeBool() public method

public GetAttributeBool ( string attrName, bool defValue ) : bool
attrName string
defValue bool
return bool

GetAttributeColor() public method

public GetAttributeColor ( string attrName, Color defValue ) : Color
attrName string
defValue Color
return Color

GetAttributeFloat() public method

public GetAttributeFloat ( string attrName ) : float
attrName string
return float

GetAttributeFloat() public method

public GetAttributeFloat ( string attrName, float defValue ) : float
attrName string
defValue float
return float

GetAttributeInt() public method

public GetAttributeInt ( string attrName ) : int
attrName string
return int

GetAttributeInt() public method

public GetAttributeInt ( string attrName, int defValue ) : int
attrName string
defValue int
return int

GetAttributeVector() public method

public GetAttributeVector ( string attrName ) : Vector2
attrName string
return Vector2

GetEnumerator() public method

public GetEnumerator ( ) : XMLList.Enumerator
return XMLList.Enumerator

GetEnumerator() public method

public GetEnumerator ( string selector ) : XMLList.Enumerator
selector string
return XMLList.Enumerator

GetNode() public method

public GetNode ( string selector ) : XML
selector string
return XML

HasAttribute() public method

public HasAttribute ( string attrName ) : bool
attrName string
return bool

SetAttribute() public method

public SetAttribute ( string attrName, string attrValue ) : void
attrName string
attrValue string
return void

XML() public method

public XML ( string text ) : System
text string
return System