1 /* g++ -g -o canonical canonical.cpp -lyaz++ -lyaz -lxml2 */
4 #include <yaz++/zoom.h>
8 int main(int argc, char **argv)
10 connection conn("z3950.loc.gov", 7090);
11 conn.option("databaseName", "Voyager");
12 conn.option("preferredRecordSyntax", "USMARC");
13 resultSet rs(conn, prefixQuery("@attr 1=7 0253333490"));
14 const record rec(rs, 0);
15 std::cout << rec.render() << std::endl;
20 * indent-tabs-mode: nil
22 * vim: shiftwidth=4 tabstop=8 expandtab