Beispiel #1
0
 public XmlDiffCharacterData(string value, XmlDiffNodeType nt, bool NormalizeNewline)
     : base()
 {
     _value = value;
     if (NormalizeNewline)
     {
         _value = _value.Replace("\n", "");
         _value = _value.Replace("\r", "");
     }
     _nodetype = nt;
 }
Beispiel #2
0
// Constructor
        internal XmlDiffCharData(int position, string value, XmlDiffNodeType nodeType) : base(position)
        {
            _value    = value;
            _nodeType = nodeType;
        }
        private void LoadTopLevelAttribute(XmlDiffNode parent, string text, PositionInfo pInfo, XmlDiffNodeType nt)
        {
            XmlDiffCharacterData textNode = new XmlDiffCharacterData(text, nt, this.NormalizeNewline)
            {
                LineNumber   = pInfo.LineNumber,
                LinePosition = pInfo.LinePosition
            };

            InsertTopLevelAttributeAsText(parent, textNode);
        }
 private void LoadTextNode(XmlDiffNode parent, string text, PositionInfo pInfo, XmlDiffNodeType nt)
 {
     if (!this.IgnoreEmptyTextNodes || !String.IsNullOrEmpty(text))
     {
         XmlDiffCharacterData textNode = new XmlDiffCharacterData(text, nt, this.NormalizeNewline)
         {
             LineNumber   = pInfo.LineNumber,
             LinePosition = pInfo.LinePosition
         };
         InsertChild(parent, textNode);
     }
 }
 private void LoadTextNode(XmlDiffNode parent, XmlReader reader, PositionInfo pInfo, XmlDiffNodeType nt)
 {
     LoadTextNode(parent, reader.Value, pInfo, nt);
 }
Beispiel #6
0
 // Constructor
 internal XmlDiffCharData( int position, string value, XmlDiffNodeType nodeType )
     : base(position)
 {
     _value = value;
     _nodeType = nodeType;
 }