From 029d6e40f675387e42ca575ba467dea95cddb3dc Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 17 Jan 2018 04:18:43 +0000 Subject: remove those xml things no longer needed on .net >4.5.2 --- .../Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs') diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index 9a20706..1196c28 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs @@ -63,7 +63,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization String fixedData = ExternalRepresentationUtils.SanitizeXml(xmlData); using (XmlTextReader wrappedReader = new XmlTextReader(fixedData, XmlNodeType.Element, null)) { - using (XmlReader reader = XmlReader.Create(wrappedReader, new XmlReaderSettings() { IgnoreWhitespace = true, ConformanceLevel = ConformanceLevel.Fragment, ProhibitDtd = true })) + using (XmlReader reader = XmlReader.Create(wrappedReader, new XmlReaderSettings() { IgnoreWhitespace = true, ConformanceLevel = ConformanceLevel.Fragment})) { try { @@ -271,11 +271,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization using(StringReader sr = new StringReader(parts[0].OuterXml)) { using(XmlTextReader reader = new XmlTextReader(sr)) - { - reader.ProhibitDtd = true; - sceneObject = new SceneObjectGroup(SceneObjectPart.FromXml(reader)); - } } // Then deal with the rest -- cgit v1.1