Stream(System.Xml.XmlLinkedNode lnkNode) { m_dataObjs.Add(new Snoop.Data.ClassSeparator(typeof(System.Xml.XmlLinkedNode))); // No data to show at this level, but we want to explicitly // show that there is an intermediate class. System.Xml.XmlElement elem = lnkNode as System.Xml.XmlElement; if (elem != null) { Stream(elem); return; } System.Xml.XmlCharacterData charData = lnkNode as System.Xml.XmlCharacterData; if (charData != null) { Stream(charData); return; } System.Xml.XmlDeclaration decl = lnkNode as System.Xml.XmlDeclaration; if (decl != null) { Stream(decl); return; } System.Xml.XmlDocumentType dType = lnkNode as System.Xml.XmlDocumentType; if (dType != null) { Stream(dType); return; } System.Xml.XmlEntityReference entRef = lnkNode as System.Xml.XmlEntityReference; if (entRef != null) { Stream(entRef); return; } System.Xml.XmlProcessingInstruction pi = lnkNode as System.Xml.XmlProcessingInstruction; if (pi != null) { Stream(pi); return; } }
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; } }