summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
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;