Exemple #1
0
 public static void ExportToXml(IEnumerable <MAObjectHologram> maObjects, XmlWriter writer, ObjectModificationType modificationType)
 {
     foreach (MAObjectHologram maObject in maObjects)
     {
         CSEntryChangeXmlExport.ExportToXml(maObject, writer, modificationType);
     }
 }
Exemple #2
0
        public static void ExportToXml(IEnumerable <MAObjectHologram> maObjects, string fileName, ObjectModificationType modificationType)
        {
            XmlWriterSettings settings = new XmlWriterSettings();

            settings.Indent       = true;
            settings.IndentChars  = "  ";
            settings.NewLineChars = Environment.NewLine;
            XmlWriter writer = XmlWriter.Create(fileName, settings);

            writer.WriteStartDocument();
            writer.WriteStartElement("acma-export");

            CSEntryChangeXmlExport.ExportToXml(maObjects, writer, modificationType);

            writer.WriteEndElement();
            writer.WriteEndDocument();
            writer.Flush();
            writer.Close();
        }
Exemple #3
0
 public void WriteXml(XmlWriter writer)
 {
     CSEntryChangeXmlExport.ExportToXml(this, writer);
 }
Exemple #4
0
 public static void ExportToXml(MAObjectHologram maObject, XmlWriter writer)
 {
     CSEntryChangeXmlExport.ExportToXml(maObject, writer, ObjectModificationType.Add);
 }