In HGAssetMapper.RewriteSOP(), don't explicitly end the document.

The document here has no <?xml declaration.  Though ideally it may be present, in practice it has not been added as the data here is embedded within an asset
On Mono 3.2.8 and probably other versions, calling WriteEndDocument() without a declaration does nothing.
On Windows .NET, the same operation throws a "Document does not have a root element" exception which may be contributing to Mantis 7397 and possibly 7439
inv-download
Justin Clark-Casey (justincc) 2015-02-21 00:08:49 +00:00
parent c90c22ed28
commit c67b3407d4
1 changed files with 0 additions and 2 deletions

View File

@ -338,8 +338,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
{ {
TransformXml(reader, writer); TransformXml(reader, writer);
writer.WriteEndDocument();
// Console.WriteLine("Output: [{0}]", sw.ToString()); // Console.WriteLine("Output: [{0}]", sw.ToString());
return sw.ToString(); return sw.ToString();