aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ExportBot/Commands/ExportOutfitCommand.cs
diff options
context:
space:
mode:
authorgareth2007-05-13 19:46:09 +0000
committergareth2007-05-13 19:46:09 +0000
commit9ec87a847edc88339bb4f2fed1462a4dbc3992a6 (patch)
tree4778bd95b2efc8b6e090ac903721dbc084d7e217 /ExportBot/Commands/ExportOutfitCommand.cs
parentSetting default grid server to DB4o (diff)
downloadopensim-SC_OLD-9ec87a847edc88339bb4f2fed1462a4dbc3992a6.zip
opensim-SC_OLD-9ec87a847edc88339bb4f2fed1462a4dbc3992a6.tar.gz
opensim-SC_OLD-9ec87a847edc88339bb4f2fed1462a4dbc3992a6.tar.bz2
opensim-SC_OLD-9ec87a847edc88339bb4f2fed1462a4dbc3992a6.tar.xz
bla
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}