2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: tstxmlquery.c,v 1.3 2006-01-27 19:04:15 adam Exp $
11 #include <yaz/wrbuf.h>
12 #include <yaz/xmlquery.h>
13 #include <yaz/pquery.h>
16 static void pqf2xml_text(const char *pqf)
18 YAZ_PQF_Parser parser = yaz_pqf_create();
19 ODR odr = odr_createmem(ODR_ENCODE);
26 rpn = yaz_pqf_parse(parser, odr, pqf);
30 yaz_pqf_destroy(parser);
32 Z_Query *query = odr_malloc(odr, sizeof(*query));
33 query->which = Z_Query_type_1;
34 query->u.type_1 = rpn;
42 int main (int argc, char **argv)
44 YAZ_CHECK_INIT(argc, argv);
46 pqf2xml_text("@attr 1=4 computer");
55 * indent-tabs-mode: nil
57 * vim: shiftwidth=4 tabstop=8 expandtab