Writing invalid xml causes xmldb to die with the following error:
PHP Fatal error: Cannot use string offset as an array in /var/www/mahara/htdocs/lib/xmldb/classes/XMLDBTable.class.php on line 469
This was caused by the following fragment:
<TABLE NAME="foo" />
(note closing slash on opening TABLE tag)
can xmldb validate the xml first before continuing ?