diff options
author | Dr Scofield | 2008-05-29 13:55:01 +0000 |
---|---|---|
committer | Dr Scofield | 2008-05-29 13:55:01 +0000 |
commit | c2925dcd404312b1751a03045ddcd35a7c84cd58 (patch) | |
tree | d5d5adbb4b0cb83a4c2559a2cb548209b0c72d7e /OpenSim/ApplicationPlugins/Rest/RestPlugin.cs | |
parent | Mantis#852. Thank you kindly, cmickeyb for a patch that: (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/RestPlugin.cs | 5 |
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(); |