summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorxue <>2005-11-19 00:31:05 +0000
committerxue <>2005-11-19 00:31:05 +0000
commit95462e0eb735af4a54e8d72aed55bcc44efe0b52 (patch)
treed6cc10d0633785eb8ec45e94e1bcad6fede9f855 /framework/Data
parent040ab8f2dac3560ff939c28f9e1dc59335f9d93c (diff)
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/TXmlDocument.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/Data/TXmlDocument.php b/framework/Data/TXmlDocument.php
index ba3df190..0b37258d 100644
--- a/framework/Data/TXmlDocument.php
+++ b/framework/Data/TXmlDocument.php
@@ -303,6 +303,7 @@ class TXmlDocument extends TXmlElement
*/
public function loadFromString($string)
{
+ // TODO: since PHP 5.1, we can get parsing errors and throw them as exception
$doc=new DOMDocument();
if($doc->loadXML($string)===false)
return false;