summaryrefslogtreecommitdiff
path: root/framework/Xml/TXmlDocument.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Xml/TXmlDocument.php')
-rw-r--r--framework/Xml/TXmlDocument.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Xml/TXmlDocument.php b/framework/Xml/TXmlDocument.php
index 7d506852..4ea2056e 100644
--- a/framework/Xml/TXmlDocument.php
+++ b/framework/Xml/TXmlDocument.php
@@ -103,7 +103,7 @@ class TXmlElement extends TComponent
*/
public function setValue($value)
{
- $this->_value=$value;
+ $this->_value=TPropertyValue::ensureString($value);
}
/**
@@ -139,7 +139,7 @@ class TXmlElement extends TComponent
*/
public function setAttribute($name,$value)
{
- $this->getAttributes()->add($name,$value);
+ $this->getAttributes()->add($name,TPropertyValue::ensureString($value));
}
/**