Mono bug introduces double xmlns attribute names when rewriting the asset in HGAssetService, e.g.  <SceneObjectPart xmlns:xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xmlns:xsd="http://www.w3.org/2001/XMLSchema">.
Solution: remove all attributes before saving.
inv-download
Diva Canto 2015-05-02 20:40:37 -07:00
parent 4211309ec7
commit 365f46bfa9
1 changed files with 3 additions and 0 deletions

View File

@ -136,6 +136,9 @@ namespace OpenSim.Framework.Serialization.External
foreach (XmlNode sop in sops) foreach (XmlNode sop in sops)
{ {
// Due to mono bug, we're removing all xmlns attributes
sop.Attributes.RemoveAll();
UserAccount creator = null; UserAccount creator = null;
bool hasCreatorData = false; bool hasCreatorData = false;
XmlNodeList nodes = sop.ChildNodes; XmlNodeList nodes = sop.ChildNodes;