diff options
author | Dr Scofield | 2009-05-18 09:34:30 +0000 |
---|---|---|
committer | Dr Scofield | 2009-05-18 09:34:30 +0000 |
commit | 2ad8710e190b7543989cdb96a5268d21d2b5cefb (patch) | |
tree | 1ebf5e7463f04201459ff2fcd8f81b32a23d6ab2 /OpenSim/ApplicationPlugins/Rest/RestPlugin.cs | |
parent | Thank you kindly, StrawberryFride, for a patch that: (diff) | |
download | opensim-SC_OLD-2ad8710e190b7543989cdb96a5268d21d2b5cefb.zip opensim-SC_OLD-2ad8710e190b7543989cdb96a5268d21d2b5cefb.tar.gz opensim-SC_OLD-2ad8710e190b7543989cdb96a5268d21d2b5cefb.tar.bz2 opensim-SC_OLD-2ad8710e190b7543989cdb96a5268d21d2b5cefb.tar.xz |
fixing XmlWriter problem
Diffstat (limited to '')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/RestPlugin.cs | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs index 8af1276..514ecd4 100644 --- a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs +++ b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs | |||
@@ -53,8 +53,8 @@ namespace OpenSim.ApplicationPlugins.Rest | |||
53 | private string _prefix; // URL prefix below | 53 | private string _prefix; // URL prefix below |
54 | // which all REST URLs | 54 | // which all REST URLs |
55 | // are living | 55 | // are living |
56 | private StringWriter _sw = null; | 56 | // private StringWriter _sw = null; |
57 | private RestXmlWriter _xw = null; | 57 | // private RestXmlWriter _xw = null; |
58 | 58 | ||
59 | private string _godkey; | 59 | private string _godkey; |
60 | private int _reqk; | 60 | private int _reqk; |
@@ -149,31 +149,31 @@ namespace OpenSim.ApplicationPlugins.Rest | |||
149 | /// </summary> | 149 | /// </summary> |
150 | public abstract string ConfigName { get; } | 150 | public abstract string ConfigName { get; } |
151 | 151 | ||
152 | public XmlTextWriter XmlWriter | 152 | // public XmlTextWriter XmlWriter |
153 | { | 153 | // { |
154 | get | 154 | // get |
155 | { | 155 | // { |
156 | if (null == _xw) | 156 | // if (null == _xw) |
157 | { | 157 | // { |
158 | _sw = new StringWriter(); | 158 | // _sw = new StringWriter(); |
159 | _xw = new RestXmlWriter(_sw); | 159 | // _xw = new RestXmlWriter(_sw); |
160 | _xw.Formatting = Formatting.Indented; | 160 | // _xw.Formatting = Formatting.Indented; |
161 | } | 161 | // } |
162 | return _xw; | 162 | // return _xw; |
163 | } | 163 | // } |
164 | } | 164 | // } |
165 | 165 | ||
166 | public string XmlWriterResult | 166 | // public string XmlWriterResult |
167 | { | 167 | // { |
168 | get | 168 | // get |
169 | { | 169 | // { |
170 | _xw.Flush(); | 170 | // _xw.Flush(); |
171 | _xw.Close(); | 171 | // _xw.Close(); |
172 | _xw = null; | 172 | // _xw = null; |
173 | 173 | ||
174 | return _sw.ToString(); | 174 | // return _sw.ToString(); |
175 | } | 175 | // } |
176 | } | 176 | // } |
177 | 177 | ||
178 | #endregion properties | 178 | #endregion properties |
179 | 179 | ||