~ubuntu-branches/ubuntu/maverick/conglomerate/maverick

« back to all changes in this revision

Viewing changes to src/cong-xpath-expression.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2005-11-08 05:07:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051108050706-bcg60nwqf1z3w0d6
Tags: 0.9.1-1ubuntu1
* Resynchronise with Debian (Closes: #4397).
  - Thanks, Jordan Mantha.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "global.h"
26
26
#include <libgnome/gnome-macros.h>
27
27
#include "cong-eel.h"
 
28
#include "cong-util.h"
28
29
#include "cong-xpath-expression.h"
29
30
#include <libxml/tree.h>
30
31
#include <libxml/debugXML.h>
238
239
        /* g_message("searching xpath \"%s\"",element->header_info->xpath); */
239
240
 
240
241
        /* FIXME: compile the path */
241
 
        xpath_obj = xmlXPathEval(PRIVATE(xpath_expression)->string_expression,
 
242
        xpath_obj = xmlXPathEval((const xmlChar*)PRIVATE(xpath_expression)->string_expression,
242
243
                                 PRIVATE(xpath_expression)->ctxt);      
243
244
 
244
245
        if (xpath_obj) {
245
 
                result = xmlXPathCastToString(xpath_obj);                       
 
246
                result = cong_util_dup_and_free_xml_string (xmlXPathCastToString(xpath_obj));                   
246
247
        } else {
247
248
                result = g_strdup(_("(xpath failed)"));
248
249
        }