aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ExportBot/Commands/ExportOutfitCommand.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ExportBot/Commands/ExportOutfitCommand.cs')
-rw-r--r--ExportBot/Commands/ExportOutfitCommand.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/ExportBot/Commands/ExportOutfitCommand.cs b/ExportBot/Commands/ExportOutfitCommand.cs
index 6ec2776..5945942 100644
--- a/ExportBot/Commands/ExportOutfitCommand.cs
+++ b/ExportBot/Commands/ExportOutfitCommand.cs
@@ -37,16 +37,18 @@ namespace libsecondlife.TestClient
37 { 37 {
38 try 38 try
39 { 39 {
40 XmlWriterSettings settings = new XmlWriterSettings(); 40 StreamWriter Outfile = File.AppendText(args[1]);
41 settings.Indent = true; 41
42 XmlWriter writer = XmlWriter.Create(args[1], settings); 42
43 try 43 try
44 { 44 {
45 Client.Appearances[id].ToXml(writer); 45 Outfile.Write(Client.Appearances[id].ToString());
46 Console.WriteLine(Client.Appearances[id].ToString());
47 //Client.Appearances[id].ToXml(writer);
46 } 48 }
47 finally 49 finally
48 { 50 {
49 writer.Close(); 51 Outfile.Close();
50 } 52 }
51 } 53 }
52 catch (Exception e) 54 catch (Exception e)
@@ -63,4 +65,4 @@ namespace libsecondlife.TestClient
63 } 65 }
64 } 66 }
65 } 67 }
66} \ No newline at end of file 68}