public override XmlText CreateTextNode(string text)
        {
            XmlTextLineInfo node;
            string          clean = text;

            if (false && MustSpaceWildcards)
            {
                clean = FormatTextNode(text);
                if (clean != text.Trim() && text.Contains("_"))
                {
                }
            }
            else
            {
                if (!PreserveWhitespace)
                {
                    clean = CleanWhitepaces(text);
                }
            }
            if (clean != text)
            {
                node = new XmlTextLineInfo(clean, this);
            }
            else
            {
                node = new XmlTextLineInfo(text, this);
            }
            setLineInfo(node);
            return(node);
        }
        public override XmlNode CloneNode(bool deep)
        {
            XmlTextLineInfo v = new XmlTextLineInfo(base.Data, (XmlDocumentLineInfo)OwnerDocument);

            v.SetLineInfo(LineNumber, LinePosition, Filename);
            v.ReadOnly = ReadOnly;
            v.CloneOf  = CloneOf ?? this;
            return(v);
        }
Ejemplo n.º 3
0
 public override XmlNode CloneNode(bool deep)
 {
     XmlTextLineInfo v = new XmlTextLineInfo(base.Data, (XmlDocumentLineInfo) OwnerDocument);
     v.SetLineInfo(LineNumber, LinePosition, Filename);
     v.ReadOnly = ReadOnly;
     v.CloneOf = CloneOf ?? this;
     return v;
 }