| Example     SablotSituation S;
     SXP_QueryContext Q;
     DOMHandler my_domhandler=
     {
       &getNodeType,
       /* ... more callbacks follow ... */
     };
     /* let us say the root is 123 */
     SXP_Node root = (SXP_Node) 123;
     SXP_char *result;
  
     SablotCreateSituation(&S);
     SXP_registerDOMHandler(S, &my_domhandler);
     SXP_createQueryContext(S, &Q);
     /* perform the query with the root as the context node */
     SXP_query(Q, "//*", root, 1, 1);
     SXP_getResultString(Q, &result);
     puts(result);
     SXP_destroyQueryContext(Q);
     SablotDestroySituation(S);
 |