aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Serialization/External/ExternalRepresentationUtils.cs
diff options
context:
space:
mode:
authorDiva Canto2015-05-02 20:40:37 -0700
committerDiva Canto2015-05-02 20:40:37 -0700
commit365f46bfa91245e6e277a180dc6bbf757ea2540f (patch)
tree9dfe4d04ab33e2653415e9890dc43f2d88dc8415 /OpenSim/Framework/Serialization/External/ExternalRepresentationUtils.cs
parentCorrected typo in namespace (diff)
downloadopensim-SC_OLD-365f46bfa91245e6e277a180dc6bbf757ea2540f.zip
opensim-SC_OLD-365f46bfa91245e6e277a180dc6bbf757ea2540f.tar.gz
opensim-SC_OLD-365f46bfa91245e6e277a180dc6bbf757ea2540f.tar.bz2
opensim-SC_OLD-365f46bfa91245e6e277a180dc6bbf757ea2540f.tar.xz
Mantis #7514
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.
Diffstat (limited to 'OpenSim/Framework/Serialization/External/ExternalRepresentationUtils.cs')
-rw-r--r--OpenSim/Framework/Serialization/External/ExternalRepresentationUtils.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Framework/Serialization/External/ExternalRepresentationUtils.cs b/OpenSim/Framework/Serialization/External/ExternalRepresentationUtils.cs
index 6debf65..a293388 100644
--- a/OpenSim/Framework/Serialization/External/ExternalRepresentationUtils.cs
+++ b/OpenSim/Framework/Serialization/External/ExternalRepresentationUtils.cs
@@ -136,6 +136,9 @@ namespace OpenSim.Framework.Serialization.External
136 136
137 foreach (XmlNode sop in sops) 137 foreach (XmlNode sop in sops)
138 { 138 {
139 // Due to mono bug, we're removing all xmlns attributes
140 sop.Attributes.RemoveAll();
141
139 UserAccount creator = null; 142 UserAccount creator = null;
140 bool hasCreatorData = false; 143 bool hasCreatorData = false;
141 XmlNodeList nodes = sop.ChildNodes; 144 XmlNodeList nodes = sop.ChildNodes;