Browse Source

SD2-843. When editing XML file with url dtd reference whilst having no network connection the WebException is now caught by the XML Editor.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1506 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 20 years ago
parent
commit
6055906c73
  1. 3
      src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlParser.cs

3
src/AddIns/DisplayBindings/XmlEditor/Project/Src/XmlParser.cs

@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
using System;
using System.Collections;
using System.IO;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Xml;
@ -128,6 +129,8 @@ namespace ICSharpCode.XmlEditor @@ -128,6 +129,8 @@ namespace ICSharpCode.XmlEditor
}
} catch (XmlException) {
// Do nothing.
} catch (WebException) {
// Do nothing.
}
path.Compact();

Loading…
Cancel
Save