XML
命名空间:FairyGUI.Utils
源码:Assets/Scripts/Utils/XML.cs (行 11)
public class XML
A simplest and readonly XML class
构造函数
XML(string)
public XML(string XmlString);
| 参数 | 类型 | 说明 |
|---|---|---|
XmlString | string |
源码:Utils/XML.cs (行 26)
字段
name
public string name;
源码:Utils/XML.cs (行 13)
text
public string text;
源码:Utils/XML.cs (行 14)
方法
AppendChild(XML)
public void AppendChild(XML child);
| 参数 | 类型 | 说明 |
|---|---|---|
child | XML |
源码:Utils/XML.cs (行 259)
Create(string)
public static XML Create(string tag);
| 参数 | 类型 | 说明 |
|---|---|---|
tag | string |
源码:Utils/XML.cs (行 19)
Elements()
public XMLList Elements();
源码:Utils/XML.cs (行 229)
Elements(string)
public XMLList Elements(string selector);
| 参数 | 类型 | 说明 |
|---|---|---|
selector | string |
源码:Utils/XML.cs (行 236)
GetAttribute(string)
public string GetAttribute(string attrName);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string |
源码:Utils/XML.cs (行 53)
GetAttribute(string, string)
public string GetAttribute(string attrName, string defValue);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
defValue | string |
源码:Utils/XML.cs (行 58)
GetAttributeArray(string)
public string[] GetAttributeArray(string attrName);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string |
源码:Utils/XML.cs (行 124)
GetAttributeArray(string, char)
public string[] GetAttributeArray(string attrName, char seperator);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
seperator | char |
源码:Utils/XML.cs (行 138)
GetAttributeBool(string)
public bool GetAttributeBool(string attrName);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string |
源码:Utils/XML.cs (行 106)
GetAttributeBool(string, bool)
public bool GetAttributeBool(string attrName, bool defValue);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
defValue | bool |
源码:Utils/XML.cs (行 111)
GetAttributeColor(string, Color)
public Color GetAttributeColor(string attrName, Color defValue);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
defValue | Color |
源码:Utils/XML.cs (行 152)
GetAttributeFloat(string)
public float GetAttributeFloat(string attrName);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string |
源码:Utils/XML.cs (行 88)
GetAttributeFloat(string, float)
public float GetAttributeFloat(string attrName, float defValue);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
defValue | float |
源码:Utils/XML.cs (行 93)
GetAttributeInt(string)
public int GetAttributeInt(string attrName);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string |
源码:Utils/XML.cs (行 70)
GetAttributeInt(string, int)
public int GetAttributeInt(string attrName, int defValue);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
defValue | int |
源码:Utils/XML.cs (行 75)
GetAttributeVector(string)
public Vector2 GetAttributeVector(string attrName);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string |
源码:Utils/XML.cs (行 161)
GetEnumerator()
public XMLList.Enumerator GetEnumerator();
源码:Utils/XML.cs (行 243)
GetEnumerator(string)
public XMLList.Enumerator GetEnumerator(string selector);
| 参数 | 类型 | 说明 |
|---|---|---|
selector | string |
源码:Utils/XML.cs (行 251)
GetNode(string)
public XML GetNode(string selector);
| 参数 | 类型 | 说明 |
|---|---|---|
selector | string |
源码:Utils/XML.cs (行 211)
HasAttribute(string)
public bool HasAttribute(string attrName);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string |
源码:Utils/XML.cs (行 45)
Parse(string)
public void Parse(string aSource);
| 参数 | 类型 | 说明 |
|---|---|---|
aSource | string |
源码:Utils/XML.cs (行 284)
RemoveAttribute(string)
public void RemoveAttribute(string attrName);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string |
源码:Utils/XML.cs (行 205)
RemoveChild(XML)
public void RemoveChild(XML child);
| 参数 | 类型 | 说明 |
|---|---|---|
child | XML |
源码:Utils/XML.cs (行 264)
RemoveChildren(string)
public void RemoveChildren(string selector);
| 参数 | 类型 | 说明 |
|---|---|---|
selector | string |
源码:Utils/XML.cs (行 272)
Reset()
public void Reset();
源码:Utils/XML.cs (行 344)
SetAttribute(string, bool)
public void SetAttribute(string attrName, bool attrValue);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
attrValue | bool |
源码:Utils/XML.cs (行 181)
SetAttribute(string, float)
public void SetAttribute(string attrName, float attrValue);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
attrValue | float |
源码:Utils/XML.cs (行 197)
SetAttribute(string, int)
public void SetAttribute(string attrName, int attrValue);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
attrValue | int |
源码:Utils/XML.cs (行 189)
SetAttribute(string, string)
public void SetAttribute(string attrName, string attrValue);
| 参数 | 类型 | 说明 |
|---|---|---|
attrName | string | |
attrValue | string |
源码:Utils/XML.cs (行 173)
ToXMLString(bool)
public string ToXMLString(bool includeHeader);
| 参数 | 类型 | 说明 |
|---|---|---|
includeHeader | bool |
源码:Utils/XML.cs (行 353)
属性
attributes
public Dictionary<string, string> attributes { get; }
源码:Utils/XML.cs (行 35)
elements
public XMLList elements { get; }
源码:Utils/XML.cs (行 219)