Ejemplo n.º 1
0
 /// <summary>
 /// 添加一个属性
 /// </summary>
 /// <returns></returns>
 public XMLObject AppendChild(string name, string value) {
     XMLObject jObj = new XMLObject(name);
     jObj.Value = value;
     base.Children.Add(jObj);
     return jObj;
 }
Ejemplo n.º 2
0
 public XMLObject Clone() {
     XMLObject xup = new XMLObject(base.Name);
     xup.Value = base.Value;
     for (int i = 0; i < this.Children.Count; i++) {
         XMLObject xupNew = this[i].Clone();
         xup.Children.Add(xupNew);
     }
     for (int i = 0; i < this.Properties.Count; i++) {
         xup.Properties.Add(new dyk.Data.LayerData.DataUnit(this.Properties[i].Name, this.Properties[i].Value));
     }
     return xup;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 添加一个子对象
 /// </summary>
 /// <returns></returns>
 public XMLObject AppendChild(string name) {
     XMLObject jObj = new XMLObject(name);
     base.Children.Add(jObj);
     return jObj;
 }