null ]; $xml = file_get_contents('php://input'); Authoring::validateQtiXml($xml); $qtiParser = new QtiParser($xml); $item = $qtiParser->load(); if (!is_null($item)) { $returnValue['itemData'] = $item->toArray(); } else { throw new common_Exception('invalid qti xml'); } $this->returnJson($returnValue); } }