From be2f05d8f8dfe6792b9645f67577c9f605d836c4 Mon Sep 17 00:00:00 2001 From: meus Date: Thu, 14 Jun 2007 12:05:46 +0000 Subject: [PATCH] Since SimpleXML only output UTF, we say that the XML is UTF-8. --- lib/Doctrine/Lib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Lib.php b/lib/Doctrine/Lib.php index 9782238f3..ded078f87 100644 --- a/lib/Doctrine/Lib.php +++ b/lib/Doctrine/Lib.php @@ -88,7 +88,8 @@ class Doctrine_Lib $collectionName = Doctrine_Lib::plurelize($collection->getTable()->name); if ( ! isset($incomming_xml)) { - $xml = new SimpleXMLElement("<" . $collectionName . ">"); + $new_xml_string = "<" . $recordname . ">"; + $xml = new SimpleXMLElement($new_xml_string); } else { $xml = $incomming_xml->addChild($collectionName); } @@ -121,7 +122,8 @@ class Doctrine_Lib { $recordname = $record->getTable()->name; if (!isset($incomming_xml)) { - $xml = new SimpleXMLElement("<" . $recordname . ">"); + $new_xml_string = "<" . $collection_name . ">"; + $xml = new SimpleXMLElement($new_xml_string); }else{ $xml = $incomming_xml->addChild($recordname); }