Esempio n. 1
0
        /// <summary>
        /// Creates an XmlText with the specified text.
        /// </summary>
        /// <param name="data">The text for the Text node.</param>
        /// <returns>The new XmlText node.</returns>
        public override XmlText CreateTextNode(string data)
        {
            LineInfoText t        = new LineInfoText(data, this);
            IXmlLineInfo lineInfo = this.reader as IXmlLineInfo;

            if (lineInfo != null && lineInfo.HasLineInfo())
            {
                t.SetLineInfo(lineInfo.LineNumber, lineInfo.LinePosition);
            }
            return(t);
        }
 /// <summary>
 /// Creates an XmlText with the specified text.
 /// </summary>
 /// <param name="data">The text for the Text node.</param>
 /// <returns>The new XmlText node.</returns>
 public override XmlText CreateTextNode(string data)
 {
     LineInfoText t = new LineInfoText(data, this);
     IXmlLineInfo lineInfo = this.reader as IXmlLineInfo;
     if (lineInfo != null && lineInfo.HasLineInfo())
     {
         t.SetLineInfo(lineInfo.LineNumber, lineInfo.LinePosition);
     }
     return t;
 }