以文本方式查看主题

-  计算机科学论坛  (http://bbs.xml.org.cn/index.asp)
--  『 XML 与 数据库 』  (http://bbs.xml.org.cn/list.asp?boardid=17)
----  哪位大虾用过berkelry DB XML?有问题请教  (http://bbs.xml.org.cn/dispbbs.asp?boardid=17&rootid=&id=17164)


--  作者:alexone
--  发布时间:4/19/2005 10:34:00 AM

--  哪位大虾用过berkelry DB XML?有问题请教
// Get a query context
XmlQueryContext context = myManager->createQueryContext();
AfxMessageBox("begin query");
// Declare a namespace
context.setNamespace("fruits", "http://groceryItem.dbxml/fruits");

// Declare the query string. Find all the product documents
// in the fruits namespace.
std::string myQuery = "collection('myContainer.dbxml')/fruits";

// Perform the query.
XmlResults results = myManager->query(myQuery, context);
上面的代码有问题吗?
特别是最后一条语句,不知有什么问题,请指教.


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
3,484.375ms