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;
            }
        }
Exemple #2
0
        public static bool _CreateSignificantWhitespace_System_Xml_XmlDocument_System_String( )
        {
            //Parameters
            System.String text = null;

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

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

            InterceptionMaintenance.disableInterception( );

            try
            {
                returnValue_Real = System.Xml.XmlDocument.CreateSignificantWhitespace(text);
            }

            catch (Exception e)
            {
                exception_Real = e;
            }


            InterceptionMaintenance.enableInterception( );

            try
            {
                returnValue_Intercepted = System.Xml.XmlDocument.CreateSignificantWhitespace(text);
            }

            catch (Exception e)
            {
                exception_Intercepted = e;
            }


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

            // no data to display at this level
        }