remove more xml things no longer needed on .net >4.5.2
parent
e9d2d81880
commit
707eb8de82
|
@ -93,7 +93,6 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
|||
m_log.Debug("[WEBLOADER]: Done downloading region information from server. Total Bytes: " +
|
||||
xmlSource.Length);
|
||||
XmlDocument xmlDoc = new XmlDocument();
|
||||
xmlDoc.XmlResolver = null;
|
||||
xmlDoc.LoadXml(xmlSource);
|
||||
if (xmlDoc.FirstChild.Name == "Nini")
|
||||
{
|
||||
|
|
|
@ -3138,7 +3138,6 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
|||
if (File.Exists(defaultAppearanceFileName))
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
string name = "*unknown*";
|
||||
string email = "anon@anon";
|
||||
uint regionXLocation = 1000;
|
||||
|
|
|
@ -110,7 +110,6 @@ namespace OpenSim.ConsoleClient
|
|||
public static void LoginReply(string requestUrl, string requestData, string replyData)
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
|
||||
doc.LoadXml(replyData);
|
||||
|
||||
|
@ -170,7 +169,6 @@ namespace OpenSim.ConsoleClient
|
|||
public static void ReadResponses(string requestUrl, string requestData, string replyData)
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
|
||||
doc.LoadXml(replyData);
|
||||
|
||||
|
|
|
@ -156,7 +156,7 @@ namespace OpenSim.Framework.Serialization.External
|
|||
return xml;
|
||||
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
|
||||
doc.LoadXml(xml);
|
||||
XmlNodeList sops = doc.GetElementsByTagName("SceneObjectPart");
|
||||
|
||||
|
|
|
@ -671,7 +671,7 @@ namespace OpenSim.Framework
|
|||
public static string GetFormattedXml(string rawXml)
|
||||
{
|
||||
XmlDocument xd = new XmlDocument();
|
||||
xd.XmlResolver=null;
|
||||
|
||||
xd.LoadXml(rawXml);
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
|
|
@ -93,7 +93,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess.Tests
|
|||
Assert.AreEqual(foreignUrl, ncAssetGet.CreatorID);
|
||||
string xmlData = Utils.BytesToString(ncAssetGet.Data);
|
||||
XmlDocument ncAssetGetXmlDoc = new XmlDocument();
|
||||
ncAssetGetXmlDoc.XmlResolver=null;
|
||||
ncAssetGetXmlDoc.LoadXml(xmlData);
|
||||
|
||||
// Console.WriteLine(ncAssetGetXmlDoc.OuterXml);
|
||||
|
|
|
@ -69,7 +69,6 @@ namespace OpenSim.Region.CoreModules.World.Serialiser
|
|||
MemoryStream stream = new MemoryStream();
|
||||
XmlTextWriter formatter = new XmlTextWriter(stream, Encoding.UTF8);
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
doc.LoadXml(xmlstream);
|
||||
formatter.Formatting = Formatting.Indented;
|
||||
doc.WriteContentTo(formatter);
|
||||
|
|
|
@ -59,8 +59,6 @@ namespace OpenSim.Region.Framework.Scenes.Animation
|
|||
using (XmlTextReader reader = new XmlTextReader(path))
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver = null;
|
||||
|
||||
doc.Load(reader);
|
||||
// if (doc.DocumentElement != null)
|
||||
// {
|
||||
|
|
|
@ -2420,7 +2420,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
else
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
doc.LoadXml(xmlData);
|
||||
XmlElement e = (XmlElement)doc.SelectSingleNode("/CoalescedObject");
|
||||
XmlElement coll = (XmlElement)e;
|
||||
|
|
|
@ -505,7 +505,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
foreach (KeyValuePair<UUID, string> state in states)
|
||||
{
|
||||
XmlDocument sdoc = new XmlDocument();
|
||||
sdoc.XmlResolver=null;
|
||||
sdoc.LoadXml(state.Value);
|
||||
XmlNodeList rootL = sdoc.GetElementsByTagName("State");
|
||||
XmlNode rootNode = rootL[0];
|
||||
|
@ -541,7 +540,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
return;
|
||||
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
try
|
||||
{
|
||||
doc.LoadXml(objXMLData);
|
||||
|
|
|
@ -455,7 +455,6 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
if (m_part.ParentGroup.m_savedScriptState.ContainsKey(stateID))
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
doc.LoadXml(m_part.ParentGroup.m_savedScriptState[stateID]);
|
||||
|
||||
////////// CRUFT WARNING ///////////////////////////////////
|
||||
|
|
|
@ -147,7 +147,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
|||
}
|
||||
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
doc.LoadXml(xml);
|
||||
XmlElement e = (XmlElement)doc.SelectSingleNode("/CoalescedObject");
|
||||
if (e == null)
|
||||
|
|
|
@ -255,7 +255,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
|||
try
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
doc.LoadXml(xmlData);
|
||||
|
||||
XmlNodeList parts = doc.GetElementsByTagName("SceneObjectPart");
|
||||
|
|
|
@ -49,7 +49,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
|||
public static void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, Vector3 loadOffset)
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
XmlNode rootNode;
|
||||
|
||||
if (fileName.StartsWith("http:") || File.Exists(fileName))
|
||||
|
|
|
@ -1125,7 +1125,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
|
|||
return null;
|
||||
|
||||
doc = new XmlDocument();
|
||||
doc.XmlResolver = null;
|
||||
|
||||
// Let's serialize all calls to Vivox. Most of these are driven by
|
||||
// the clients (CAPs), when the user arrives at the region. We don't
|
||||
|
|
|
@ -207,7 +207,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
|
|||
public static void Deserialize(string xml, ScriptInstance instance)
|
||||
{
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
|
||||
Dictionary<string, object> vars = instance.GetVars();
|
||||
|
||||
|
|
|
@ -2098,7 +2098,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
string xml = instance.GetXMLState();
|
||||
|
||||
XmlDocument sdoc = new XmlDocument();
|
||||
sdoc.XmlResolver=null;
|
||||
|
||||
bool loadedState = true;
|
||||
try
|
||||
{
|
||||
|
@ -2254,7 +2254,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
|||
return false;
|
||||
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver=null;
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
@ -513,7 +513,7 @@ namespace OpenSim.Server.Base
|
|||
Dictionary<string, object> ret = new Dictionary<string, object>();
|
||||
|
||||
XmlDocument doc = new XmlDocument();
|
||||
doc.XmlResolver = null;
|
||||
|
||||
try
|
||||
{
|
||||
doc.LoadXml(data);
|
||||
|
|
Loading…
Reference in New Issue