示例#1
0
        public static XDom LoadUri(string fileUri, Encoding encoding)
        {
            XDom temp = new XDom();
            temp.Load(fileUri, encoding);

            return temp;
        }
示例#2
0
        public static XDom LoadOps(string opsXml)
        {
            XDom temp = new XDom();
            temp.Add(opsXml);

            return temp;
        }
示例#3
0
        public static XDom LoadOps(string opsXml)
        {
            XDom temp = new XDom();

            temp.Add(opsXml);

            return(temp);
        }
示例#4
0
        public static XDom LoadUri(string fileUri, Encoding encoding)
        {
            XDom temp = new XDom();

            temp.Load(fileUri, encoding);

            return(temp);
        }
示例#5
0
        /// <summary>
        /// 去除<![CDATA[]]>代码
        /// </summary>
        /// <returns></returns>
        public XItem CDATA()
        {
            if (_IsCDATA == false)
            {
                this.Text = XDom.CDATA(this.Text);
            }

            return(this);
        }
示例#6
0
        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;
        }
示例#7
0
        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);
        }
示例#8
0
        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);
        }
示例#9
0
 public static XDom LoadXml(string xml, bool isDoc)
 {
     return(LoadXml(XDom.ParseXml(xml, isDoc)));
 }
示例#10
0
文件: XItem.cs 项目: noear/Weed3
        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;
        }