Example #1
0
        public override void Init(System.Xml.XmlNode xmlNode)
        {
            if (xmlNode.NodeType != System.Xml.XmlNodeType.CDATA)
            {
                return;
            }

            System.Xml.XmlCDataSection cdata = xmlNode as System.Xml.XmlCDataSection;

            Name = cdata.Name;

            Value = cdata.Value;

            CreateTextLine();
        }
        Stream(System.Xml.XmlCharacterData charData)
        {
            m_dataObjs.Add(new Snoop.Data.ClassSeparator(typeof(System.Xml.XmlCharacterData)));

            m_dataObjs.Add(new Snoop.Data.Int("Length", charData.Length));
            m_dataObjs.Add(new Snoop.Data.String("Data", charData.Data));

            System.Xml.XmlCDataSection cDataSection = charData as System.Xml.XmlCDataSection;
            if (cDataSection != null)
            {
                Stream(cDataSection);
                return;
            }

            System.Xml.XmlComment comment = charData as System.Xml.XmlComment;
            if (comment != null)
            {
                Stream(comment);
                return;
            }

            System.Xml.XmlSignificantWhitespace swSpace = charData as System.Xml.XmlSignificantWhitespace;
            if (swSpace != null)
            {
                Stream(swSpace);
                return;
            }

            System.Xml.XmlText txt = charData as System.Xml.XmlText;
            if (txt != null)
            {
                Stream(txt);
                return;
            }

            System.Xml.XmlWhitespace wSpace = charData as System.Xml.XmlWhitespace;
            if (wSpace != null)
            {
                Stream(wSpace);
                return;
            }
        }
        public static bool _CreateCDataSection_System_Xml_XmlDocument_System_String( )
        {
            //Parameters
            System.String data = null;

            //ReturnType/Value
            System.Xml.XmlCDataSection returnVal_Real        = null;
            System.Xml.XmlCDataSection returnVal_Intercepted = null;

            //Exception
            Exception exception_Real        = null;
            Exception exception_Intercepted = null;

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnValue_Real = System.Xml.XmlDocument.CreateCDataSection(data);
            }

            catch (Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnValue_Intercepted = System.Xml.XmlDocument.CreateCDataSection(data);
            }

            catch (Exception e)
            {
                exception_Intercepted = e;
            }


            Return((exception_Real.Messsage == exception_Intercepted.Message) && (returnValue_Real == returnValue_Intercepted));
        }
        Stream(System.Xml.XmlCDataSection cDataSection)
        {
            m_dataObjs.Add(new Snoop.Data.ClassSeparator(typeof(System.Xml.XmlCDataSection)));

            // do data to display at this level
        }
Example #5
0
 internal XmlCDataSection(XmlDocument owner, SystemXmlCDataSection backingDataSection)
 {
     _owner = owner;
     _backingDataSection = backingDataSection;
 }