EXPECTED RESULT:
book1 = Knowledge Discovery in Databases.
ACTUAL RESULT:
Knowledge Discovery in Databases.';
$mgr = new XmlManager();
try {
$con = $mgr->createContainer("test.dbxml");
$con->putDocument($book_name, $book_content);
$qc = $mgr->createQueryContext();
$res = $mgr->query("collection('test.dbxml')/x[", $qc);
$doc = $con->getDocument("foo");
$s = $doc->getContentAsString();
print $doc->getName(). " = $s\n";
unset($doc);
unset($con);
} catch (XmlException $xe) {
print "XmlException message: ".$xe->what()."\n";
print "XmlException code: ".$xe->getExceptionCode()."\n";
print "XmlException dbErrno: ".$xe->getDbErrno()."\n";
print "Query line: ". $xe->getQueryLine()."\n";
print "Query column: ". $xe->getQueryColumn()."\n";
unset($con);
}
$mgr->removeContainer("test.dbxml");