aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs
diff options
context:
space:
mode:
authorDr Scofield2009-05-18 09:34:30 +0000
committerDr Scofield2009-05-18 09:34:30 +0000
commit2ad8710e190b7543989cdb96a5268d21d2b5cefb (patch)
tree1ebf5e7463f04201459ff2fcd8f81b32a23d6ab2 /OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs
parentThank you kindly, StrawberryFride, for a patch that: (diff)
downloadopensim-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 'OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs b/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs
index 4b8bb5c..58cb102 100644
--- a/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs
@@ -94,16 +94,18 @@ namespace OpenSim.ApplicationPlugins.Rest.Regions
94 94
95 public string CreateRegion(OSHttpRequest request, OSHttpResponse response) 95 public string CreateRegion(OSHttpRequest request, OSHttpResponse response)
96 { 96 {
97 XmlWriter.WriteStartElement(String.Empty, "regions", String.Empty); 97 RestXmlWriter rxw = new RestXmlWriter(new StringWriter());
98
99 rxw.WriteStartElement(String.Empty, "regions", String.Empty);
98 foreach (Scene s in App.SceneManager.Scenes) 100 foreach (Scene s in App.SceneManager.Scenes)
99 { 101 {
100 XmlWriter.WriteStartElement(String.Empty, "uuid", String.Empty); 102 rxw.WriteStartElement(String.Empty, "uuid", String.Empty);
101 XmlWriter.WriteString(s.RegionInfo.RegionID.ToString()); 103 rxw.WriteString(s.RegionInfo.RegionID.ToString());
102 XmlWriter.WriteEndElement(); 104 rxw.WriteEndElement();
103 } 105 }
104 XmlWriter.WriteEndElement(); 106 rxw.WriteEndElement();
105 107
106 return XmlWriterResult; 108 return rxw.ToString();
107 } 109 }
108 110
109 public string LoadPrims(string requestBody, OSHttpRequest request, OSHttpResponse response, Scene scene) 111 public string LoadPrims(string requestBody, OSHttpRequest request, OSHttpResponse response, Scene scene)