neel / bong

1 stars 0 forks source link

XMLPacker got Exception when it was trying to use Tagname with Space for an associative array #16

Open neel opened 12 years ago

neel commented 12 years ago

Backtrace and Exception attached herewith. seen when it was trying to use Full Name as TagName

string(9) "Full Name"
#0  XMLPacker->createElement(Full Name, Array ([bong:index] => Full Name,[bong:type] => string)) called at [/var/www/localhost/htdocs/bong/usr/lib/module/xdo/xmlpacker.php:125]
#1  XMLPacker->toXML_internal(Array ([Full Name] => Surajit Dam,[Nick Name] => Surajit Dam,[Email Address] => surajit_dam@yahoo.com,[Gender] => M,[Language] => en-IN,[__bong_dca699e708143c51fd3b25144750730f] => bongfbd029ffe07cb471e89006b879c16173)) called at [/var/www/localhost/htdocs/bong/usr/lib/module/xdo/xmlpacker.php:101]
#2  XMLPacker->toXML_internal(ControllerXDO Object ([] => ,[timestamp] => 1333797094,[res] => Array ([Full Name] => Surajit Dam,[Nick Name] => Surajit Dam,[Email Address] => surajit_dam@yahoo.com,[Gender] => M,[Language] => en-IN))) called at [/var/www/localhost/htdocs/bong/usr/lib/module/xdo/xmlpacker.php:83]
#3  XMLPacker->toXML() called at [/var/www/localhost/htdocs/bong/usr/lib/module/xdo/AbstractXDO.php:15]
#4  AbstractXDO->toXML() called at [/var/www/localhost/htdocs/bong/usr/lib/module/xdo/AbstractXDO.php:33]
#5  AbstractXDO->serialize() called at [/var/www/localhost/htdocs/bong/usr/lib/module/mvc/BongController.php:19]
#6  BongController->serialize() called at [/var/www/localhost/htdocs/bong/usr/lib/include/engines/MVCEngine.php:55]
#7  MVCEngine->executeLogic() called at [/var/www/localhost/htdocs/bong/usr/lib/include/engines/MVCEngine.php:102]
#8  MVCEngine->run() called at [/var/www/localhost/htdocs/bong/index.php:125]
<br />
<b>Fatal error</b>:  Uncaught exception 'DOMException' with message 'Invalid Character Error' in /var/www/localhost/htdocs/bong/usr/lib/module/xdo/xmlpacker.php:29
Stack trace:
#0 /var/www/localhost/htdocs/bong/usr/lib/module/xdo/xmlpacker.php(29): DOMDocument-&gt;createElement('Full Name')
#1 /var/www/localhost/htdocs/bong/usr/lib/module/xdo/xmlpacker.php(125): XMLPacker-&gt;createElement('Full Name', Array)
#2 /var/www/localhost/htdocs/bong/usr/lib/module/xdo/xmlpacker.php(101): XMLPacker-&gt;toXML_internal(Array)
#3 /var/www/localhost/htdocs/bong/usr/lib/module/xdo/xmlpacker.php(83): XMLPacker-&gt;toXML_internal(Object(ControllerXDO))
#4 /var/www/localhost/htdocs/bong/usr/lib/module/xdo/AbstractXDO.php(15): XMLPacker-&gt;toXML()
#5 /var/www/localhost/htdocs/bong/usr/lib/module/xdo/AbstractXDO.php(33): AbstractXDO-&gt;toXML()
#6 /var/www/localhost/htdocs/bong/usr/lib/module/mvc/BongController.php(19): AbstractXDO-&gt;serialize()
#7 /var/www/localhost/htdocs/bong/usr/lib/include/engines/MVCEngine.php(55): BongController-&gt;serialize()
#8 /var/www/loca in <b>/var/www/localhost/htdocs/bong/usr/lib/module/xdo/xmlpacker.php</b> on line <b>29</b><br />