Ejemplo n.º 1
0
        private static string MakeXmlFromInventory()
        {
            ViewTemplate f = MakeSampleInventory();

            var builder = new StringBuilder();
            var writer  = XmlWriter.Create(builder, CanonicalXmlSettings.CreateXmlWriterSettings());

            f.Write(writer);
            writer.Close();
            return(builder.ToString());
        }