summaryrefslogtreecommitdiff
path: root/framework/Xml
diff options
context:
space:
mode:
authorxue <>2008-01-23 01:49:02 +0000
committerxue <>2008-01-23 01:49:02 +0000
commitf423f552e01310ae0338d1c4e413c1dc75ea10d5 (patch)
tree5094d2a32672d8b60eaccddf2b3b7d7af8b0728d /framework/Xml
parentd9d790345d807e09bf6732ea57a34be7f58292ae (diff)
fixed an encoding issue in TXmlDocument.
Diffstat (limited to 'framework/Xml')
-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>