How well do you know the API tools Joomla! 3 has to offer to developers? Take the guided tour with an experienced Joomla! developer and long-time contributor.
23. $db = JFactory::getDbo();
$importer = $db->getImporter();
$importer->from($xml);
// Bug: mergeStructure is protected. Sad panda :(
// $importer->mergeStructure();
$reflection = new ReflectionObject($importer);
$method = $reflection->getMethod('mergeStructure');
$method->setAccessible(true);
$method->invoke($importer);
Importing the database
Here Be Dragons!