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.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Xml/TXmlDocument.php b/framework/Xml/TXmlDocument.php
index 0b44214e..d4561734 100644
--- a/framework/Xml/TXmlDocument.php
+++ b/framework/Xml/TXmlDocument.php
@@ -222,7 +222,7 @@ class TXmlElement extends TComponent
else
return $prefix."<{$this->_tagName}$attr />";
}
-
+
/**
* Magic-method override. Called whenever this element is used as a string.
* <code>
@@ -248,9 +248,9 @@ class TXmlElement extends TComponent
'<'=>'&lt;',
'&'=>'&amp;',
'"'=>'&quot;',
- "\r"=>'&#xA;',
+ "\r"=>'&#xD;',
"\t"=>'&#x9;',
- "\n"=>'&#xD;'));
+ "\n"=>'&#xA;'));
}
}
@@ -433,7 +433,7 @@ class TXmlDocument extends TXmlElement
$encoding=empty($this->_encoding)?'':' encoding="'.$this->_encoding.'"';
return "<?xml{$version}{$encoding}?>\n".$this->toString(0);
}
-
+
/**
* Magic-method override. Called whenever this document is used as a string.
* <code>