public XmlContentRepository(IDefinitionManager definitions, IWebContext webContext, XmlFileSystem fileSystem, IItemXmlWriter writer, IItemXmlReader reader, IItemNotifier notifier)
     : base(webContext, fileSystem)
 {
     this.definitions = definitions;
     this.writer      = writer;
     this.reader      = reader;
     this.notifier    = notifier;
 }
		protected string WriteToStreamAndReturn(ContentItem item)
		{
			IItemXmlWriter writer = CreateWriter();
			StringBuilder sb = new StringBuilder();
			StringWriter sw = new StringWriter(sb);

			XmlTextWriter xmlOutput = new XmlTextWriter(sw);
			xmlOutput.Formatting = Formatting.Indented;
			xmlOutput.Indentation = 1;
			xmlOutput.WriteStartDocument();
			xmlOutput.WriteStartElement("n2");

			writer.Write(item, ExportOptions.Default, xmlOutput);

			xmlOutput.WriteEndElement();
			xmlOutput.WriteEndDocument();
			return sb.ToString();
		}
Beispiel #3
0
 public Exporter(IItemXmlWriter itemWriter)
 {
     XmlFormatting   = Formatting.Indented;
     this.itemWriter = itemWriter;
 }
Beispiel #4
0
 public Exporter(IItemXmlWriter itemWriter)
 {
     this.itemWriter = itemWriter;
 }
Beispiel #5
0
	    public Exporter(IItemXmlWriter itemWriter)
		{
		    XmlFormatting = Formatting.Indented;
		    this.itemWriter = itemWriter;
		}
Beispiel #6
0
 public Exporter(IItemXmlWriter itemWriter)
 {
     this.itemWriter = itemWriter;
 }