public XmlBlockSplitter(XmlLogReader reader, IXmlLogConfiguration xmlLogConfig) { _reader = reader; _reader.StartTag = xmlLogConfig.XmlStartTag; _reader.EndTag = xmlLogConfig.XmlEndTag; Stylesheet = xmlLogConfig.Stylesheet; // Create the XmlNamespaceManager. NameTable nt = new NameTable(); XmlNamespaceManager nsmgr = new XmlNamespaceManager(nt); if (xmlLogConfig.Namespace != null) { nsmgr.AddNamespace(xmlLogConfig.Namespace[0], xmlLogConfig.Namespace[1]); } // Create the XmlParserContext. _context = new XmlParserContext(nt, nsmgr, null, XmlSpace.None); _settings = new XmlReaderSettings(); _settings.ConformanceLevel = ConformanceLevel.Fragment; }