I have trouble with joomla AJAX-XML component develop. I personally use this test XML for development. My script is stop each time, after i attempt to parse data from XML and that i really do not know why.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <child gender="m">Tom Foo</child>
    <child gender="f">Tamara Bar</child>

This XML is delivering to my controller, where it's attempt to parse. Below is code report on my controller in joomla.

class FunnyControllerOperation extends FunnyController {

 * Work with xml and save date in DB
 * @return void
function upload() {
    //Get an xml request, enabled ALLOWRAW option xml, because don't wont delete special character
    $post = JRequest::getVar('xml', null, 'post', 'none', JREQUEST_ALLOWRAW);
    //Use standart joomla classes to work with XML
    $xml = new JSimpleXML;

    //load xml data into object

    //try to print result, and it's work!
    print $xml->document->toString();

    // After this postion code failing and redirect to database.php component
    print $xml->root->node->child[0]->data(); // Tom Foo

    // This's not work too
    $attr = $xml->root->node->child[1]->attributes();
    print $attr['gender']; // f            


After i try use of data of area my script redirect me to create session function in joomla in standard joomla lib: session/storage/database.php after which in order to save and now pause and work.

 * Write session data to the SessionHandler backend.
 * @access public
 * @param string $id            The session identifier.
 * @param string $session_data  The session data.
 * @return boolean  True on success, false otherwise.

 function write($id, $session_data)
    $db =& JFactory::getDBO();
    if(!$db->connected()) {
        return false;

    $session = & JTable::getInstance('session');
    if ($session->load($id)) {
        $session->data = $session_data;
    } else {
        // if load failed then we assume that it is because
        // the session doesn't exist in the database
        // therefore we use insert instead of store
        $app = &JFactory::getApplication();
        $session->data = $session_data;
        $session->insert($id, $app->getClientId());

    return true;

 * Close the SessionHandler backend.
 * @access public
 * @return boolean  True on success, false otherwise.
function close()
//this is out point, after this script stop work    
    return true;

I trying pure php5 realization of SimpleXML and it is not work too. I personally use CUrl for simulate Publish request.


    #read xml from file

    FILE=cat test.xml

#url for xml controller

#Post curl data with debug cookie
curl -X POST -d "xml=$FILE" \
-b "XDEBUG_SESSION=netbeans-xdebug" "$URL"

I attempt to operate command from opera, wuthout delivering publish data also it still no longer working. I personally use NetBeans 7..1 and XDebug 2.1. for debugging. Ubuntu x64 OS 10.10, php 5.3.3. Joomla 1.5.22.


Simplexml support   enabled

Revision    $Revision: 299424 $

Schema support  enabled


libXML support  active

libXML Put together Version     2.7.7

libXML Loaded Version   20707

libXML streams  enabled


Apache Version  Apache/2.2.16 (Ubuntu)

Apache API Version  20051115

Server Administrator    website owner@localhost

Hostname:Port   funnysite:

User/Group  www-data(33)/33

Max Demands    Per Child:  - Keep Alive: on - Max Per Connection: 100

Timeouts    Connection: 300 - Keep-Alive: 15

Virtual Server  Yes

Server Root     /etc/apache2

Loaded Modules  core mod_log_config mod_logio prefork http_core mod_so mod_actions mod_alias mod_auth_fundamental mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dav mod_dav_svn mod_authz_svn mod_deflate mod_dir mod_env mod_mime mod_settlement mod_perl mod_php5 mod_reqtimeout mod_rewrite mod_setenvif mod_status

I truly don't now wrong by using it. Hard google searching not giving any result.