From 78ab872f81dc29a9ada34ad597e275c35e593a9d Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Mon, 30 Apr 2012 19:45:19 +0100 Subject: [PATCH] Fix file not found exception when opening an xml document referencing a dtd in the Xml Tree View editor. --- src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs index 25babe21fc..ced4b57923 100644 --- a/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs +++ b/src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlView.cs @@ -141,8 +141,9 @@ namespace ICSharpCode.XmlEditor { if (editor == null) return false; try { - XmlDocument Document = new XmlDocument(); - Document.LoadXml(editor.Document.Text); + XmlDocument document = new XmlDocument(); + document.XmlResolver = null; + document.LoadXml(editor.Document.Text); return true; } catch (XmlException ex) { AddTask(editor.FileName, ex.Message, ex.LinePosition, ex.LineNumber, TaskType.Error);