Skip to content

Commit

Permalink
SceneObjectPart and TaskInventoryItems avoid xmlns: scheme info.
Browse files Browse the repository at this point in the history
  • Loading branch information
appurist authored and kf6kjg committed Mar 25, 2019
1 parent 70a6e69 commit d32e9a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion OpenSim/Framework/TaskInventoryDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,14 @@ public void ReadXml(XmlReader reader)
// see IXmlSerializable
public void WriteXml(XmlWriter writer)
{
XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
ns.Add("", "");

lock (this)
{
foreach (TaskInventoryItem item in Values)
{
tiiSerializer.Serialize(writer, item);
tiiSerializer.Serialize(writer, item, ns);
}
}

Expand Down
5 changes: 4 additions & 1 deletion OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4252,7 +4252,10 @@ public EntityIntersection TestIntersectionOBB(Ray iray, Quaternion parentrot, bo
/// <param name="xmlWriter"></param>
public void ToXml(XmlWriter xmlWriter)
{
serializer.Serialize(xmlWriter, this);
//Create our own namespaces for the output and add an empty namespace
XmlSerializerNamespaces ns = new XmlSerializerNamespaces();
ns.Add("", "");
serializer.Serialize(xmlWriter, this, ns);
}

public void TriggerScriptChangedEvent(Changed val)
Expand Down

0 comments on commit d32e9a9

Please sign in to comment.