Hi,
Suppose we have an XML file like the following one:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<production>
<database type="mysqli">
<host>localhost</host>
<port>3306</port>
<username>root</username>
<password></password>
<dbname></dbname>
</database>
<debug>TRUE</debug>
</production>
</config>
Note that the 'database' has a 'type' attribute.
How can I read the type attribute of database?
$config = new Zend_Config_Xml('./application/config.xml', 'production',
FALSE);
echo($config->database->sec->value); // returns NULL
echo($config->database->sec); // returns NULL
Both return NULL!