Back to index

nordugrid-arc-nox  1.1.0~rc6
test.cpp
Go to the documentation of this file.
00001 #ifdef HAVE_CONFIG_H
00002 #include <config.h>
00003 #endif
00004 
00005 #include "XmlDatabase.h"
00006 
00007 int main(void)
00008 {
00009     Arc::XmlDatabase db("db", "test");
00010     std::string content = "<?xml version=\"1.0\"?><foo>bar</foo>";
00011     db.put("1", content);
00012     Arc::XMLNode n;
00013     db.get("1", n);
00014     std::string s;
00015     n.GetDoc(s);
00016     std::cout << s << std::endl;
00017     db.del("1");
00018     return 0;
00019 }
00020