瀏覽代碼

* Patch from Sergei Gorelkin: * Makes TDOMParser.ParseURI throw EXMLReadError when URI is not resolvable (consistent with the Parse method).

git-svn-id: trunk@11389 -
michael 17 年之前
父節點
當前提交
42601356dd
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/fcl-xml/src/xmlread.pp

+ 3 - 1
packages/fcl-xml/src/xmlread.pp

@@ -637,7 +637,9 @@ begin
   with TXMLReader.Create(Self) do
   try
     if ResolveEntity(URI, '', Src) then
-      ProcessXML(Src);
+      ProcessXML(Src)
+    else
+      DoErrorPos(esFatal, 'The specified URI could not be resolved', NullLocation);
   finally
     ADoc := TXMLDocument(doc);
     Free;