public static XDom LoadUri(string fileUri, Encoding encoding) { XDom temp = new XDom(); temp.Load(fileUri, encoding); return temp; }
public static XDom LoadOps(string opsXml) { XDom temp = new XDom(); temp.Add(opsXml); return temp; }
public static XDom LoadOps(string opsXml) { XDom temp = new XDom(); temp.Add(opsXml); return(temp); }
public static XDom LoadUri(string fileUri, Encoding encoding) { XDom temp = new XDom(); temp.Load(fileUri, encoding); return(temp); }
/// <summary> /// 去除<![CDATA[]]>代码 /// </summary> /// <returns></returns> public XItem CDATA() { if (_IsCDATA == false) { this.Text = XDom.CDATA(this.Text); } return(this); }
public static XDom LoadXml(XmlNode node) { XDom temp = new XDom(); foreach(XmlAttribute a in node.Attributes) temp.Add(a.Name, a.Value); foreach (XmlNode n in node.ChildNodes) temp.Add(n.Name, n.InnerXml); return temp; }
public XItem Set(XDom data) { if (textWt == null) { textWt = new StringBuilder(this.Text); } foreach (XItem item in data) { textWt.Replace("{" + item.Name + "}", item.Text); } return(this); }
public static XDom LoadXml(XmlNode node) { XDom temp = new XDom(); foreach (XmlAttribute a in node.Attributes) { temp.Add(a.Name, a.Value); } foreach (XmlNode n in node.ChildNodes) { temp.Add(n.Name, n.InnerXml); } return(temp); }
public static XDom LoadXml(string xml, bool isDoc) { return(LoadXml(XDom.ParseXml(xml, isDoc))); }
public XItem Set(XDom data) { if (textWt == null) textWt = new StringBuilder(this.Text); foreach (XItem item in data) textWt.Replace("{" + item.Name + "}", item.Text); return this; }