diff options
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Regions/POSTHandler.cs | 14 |
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) |