XML
Namespace:FairyGUI.Utils
Source:Assets/Scripts/Utils/XML.cs (line 11)
public class XML
A simplest and readonly XML class
Constructors
XML(string)
public XML(string XmlString);
| Parameter | Type | Description |
|---|---|---|
XmlString | string |
Source:Utils/XML.cs (line 26)
Fields
name
public string name;
Source:Utils/XML.cs (line 13)
text
public string text;
Source:Utils/XML.cs (line 14)
Methods
AppendChild(XML)
public void AppendChild(XML child);
| Parameter | Type | Description |
|---|---|---|
child | XML |
Source:Utils/XML.cs (line 259)
Create(string)
public static XML Create(string tag);
| Parameter | Type | Description |
|---|---|---|
tag | string |
Source:Utils/XML.cs (line 19)
Elements()
public XMLList Elements();
Source:Utils/XML.cs (line 229)
Elements(string)
public XMLList Elements(string selector);
| Parameter | Type | Description |
|---|---|---|
selector | string |
Source:Utils/XML.cs (line 236)
GetAttribute(string)
public string GetAttribute(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/XML.cs (line 53)
GetAttribute(string, string)
public string GetAttribute(string attrName, string defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | string |
Source:Utils/XML.cs (line 58)
GetAttributeArray(string)
public string[] GetAttributeArray(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/XML.cs (line 124)
GetAttributeArray(string, char)
public string[] GetAttributeArray(string attrName, char seperator);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
seperator | char |
Source:Utils/XML.cs (line 138)
GetAttributeBool(string)
public bool GetAttributeBool(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/XML.cs (line 106)
GetAttributeBool(string, bool)
public bool GetAttributeBool(string attrName, bool defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | bool |
Source:Utils/XML.cs (line 111)
GetAttributeColor(string, Color)
public Color GetAttributeColor(string attrName, Color defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | Color |
Source:Utils/XML.cs (line 152)
GetAttributeFloat(string)
public float GetAttributeFloat(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/XML.cs (line 88)
GetAttributeFloat(string, float)
public float GetAttributeFloat(string attrName, float defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | float |
Source:Utils/XML.cs (line 93)
GetAttributeInt(string)
public int GetAttributeInt(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/XML.cs (line 70)
GetAttributeInt(string, int)
public int GetAttributeInt(string attrName, int defValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
defValue | int |
Source:Utils/XML.cs (line 75)
GetAttributeVector(string)
public Vector2 GetAttributeVector(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/XML.cs (line 161)
GetEnumerator()
public XMLList.Enumerator GetEnumerator();
Source:Utils/XML.cs (line 243)
GetEnumerator(string)
public XMLList.Enumerator GetEnumerator(string selector);
| Parameter | Type | Description |
|---|---|---|
selector | string |
Source:Utils/XML.cs (line 251)
GetNode(string)
public XML GetNode(string selector);
| Parameter | Type | Description |
|---|---|---|
selector | string |
Source:Utils/XML.cs (line 211)
HasAttribute(string)
public bool HasAttribute(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/XML.cs (line 45)
Parse(string)
public void Parse(string aSource);
| Parameter | Type | Description |
|---|---|---|
aSource | string |
Source:Utils/XML.cs (line 284)
RemoveAttribute(string)
public void RemoveAttribute(string attrName);
| Parameter | Type | Description |
|---|---|---|
attrName | string |
Source:Utils/XML.cs (line 205)
RemoveChild(XML)
public void RemoveChild(XML child);
| Parameter | Type | Description |
|---|---|---|
child | XML |
Source:Utils/XML.cs (line 264)
RemoveChildren(string)
public void RemoveChildren(string selector);
| Parameter | Type | Description |
|---|---|---|
selector | string |
Source:Utils/XML.cs (line 272)
Reset()
public void Reset();
Source:Utils/XML.cs (line 344)
SetAttribute(string, bool)
public void SetAttribute(string attrName, bool attrValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
attrValue | bool |
Source:Utils/XML.cs (line 181)
SetAttribute(string, float)
public void SetAttribute(string attrName, float attrValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
attrValue | float |
Source:Utils/XML.cs (line 197)
SetAttribute(string, int)
public void SetAttribute(string attrName, int attrValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
attrValue | int |
Source:Utils/XML.cs (line 189)
SetAttribute(string, string)
public void SetAttribute(string attrName, string attrValue);
| Parameter | Type | Description |
|---|---|---|
attrName | string | |
attrValue | string |
Source:Utils/XML.cs (line 173)
ToXMLString(bool)
public string ToXMLString(bool includeHeader);
| Parameter | Type | Description |
|---|---|---|
includeHeader | bool |
Source:Utils/XML.cs (line 353)
Properties
attributes
public Dictionary<string, string> attributes { get; }
Source:Utils/XML.cs (line 35)
elements
public XMLList elements { get; }
Source:Utils/XML.cs (line 219)