Create an XmlManager/XmlContainer, add a document, query the container for the document, iterate over the result set displaying the values returned. EXPECTED RESULT: book1 = Knowledge Discovery in Databases. ACTUAL RESULT: Knowledge Discovery in Databases.'; $container_name = 'test.dbxml'; $mgr = new XmlManager(); if(file_exists("test.dbxml")) { $mgr->removeContainer("test.dbxml"); } $con = $mgr->createContainer("test.dbxml"); $con->putDocument($book_name, $book_content); $results = $mgr->query("collection('test.dbxml')/book"); $results->reset(); while($results->hasNext()) { $val = $results->next(); $doc = $val->asDocument(); print $doc->getName()." = ".$val->asString()."\n"; }