public XmlSource(Stream source) { _source = source; var serializers = new List <IXmlElementSerializer>() { new BookElementSerializer(), new NewspaperElementSerializer(), new PatentElementSerializer() }; _reader = new XmlSourceReader(serializers); _writer = new XmlSourceWriter(serializers); }
public XmlSource(Stream source, IXmlSourceReader reader, IXmlSourceWriter writer) { _source = source; _reader = reader; _writer = writer; }