aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
diff options
context:
space:
mode:
authorDr Scofield2008-05-29 13:55:01 +0000
committerDr Scofield2008-05-29 13:55:01 +0000
commitc2925dcd404312b1751a03045ddcd35a7c84cd58 (patch)
treed5d5adbb4b0cb83a4c2559a2cb548209b0c72d7e /OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
parentMantis#852. Thank you kindly, cmickeyb for a patch that: (diff)
downloadopensim-SC_OLD-c2925dcd404312b1751a03045ddcd35a7c84cd58.zip
opensim-SC_OLD-c2925dcd404312b1751a03045ddcd35a7c84cd58.tar.gz
opensim-SC_OLD-c2925dcd404312b1751a03045ddcd35a7c84cd58.tar.bz2
opensim-SC_OLD-c2925dcd404312b1751a03045ddcd35a7c84cd58.tar.xz
cleaning up returned XML REST doclet (no more xsi, xsd)
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/RestPlugin.cs')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/RestPlugin.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
index e395840..8373ea2 100644
--- a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
+++ b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
@@ -66,7 +66,7 @@ namespace OpenSim.ApplicationPlugins.Rest
66 // which all REST URLs 66 // which all REST URLs
67 // are living 67 // are living
68 private StringWriter _sw = null; 68 private StringWriter _sw = null;
69 private XmlTextWriter _xw = null; 69 private RestXmlWriter _xw = null;
70 70
71 private string _godkey; 71 private string _godkey;
72 private int _reqk; 72 private int _reqk;
@@ -159,7 +159,7 @@ namespace OpenSim.ApplicationPlugins.Rest
159 if (null == _xw) 159 if (null == _xw)
160 { 160 {
161 _sw = new StringWriter(); 161 _sw = new StringWriter();
162 _xw = new XmlTextWriter(_sw); 162 _xw = new RestXmlWriter(_sw);
163 _xw.Formatting = Formatting.Indented; 163 _xw.Formatting = Formatting.Indented;
164 } 164 }
165 return _xw; } 165 return _xw; }
@@ -170,6 +170,7 @@ namespace OpenSim.ApplicationPlugins.Rest
170 get 170 get
171 { 171 {
172 _xw.Flush(); 172 _xw.Flush();
173 _xw.Close();
173 _xw = null; 174 _xw = null;
174 175
175 return _sw.ToString(); 176 return _sw.ToString();