Re: [xml] xpath problem

On Wed, Mar 4, 2009 at 2:47 AM, Belgabor <belgabor gmx de> wrote:
Sounds very much like a namespace issue. Please tell exactly how you
registered it and what query you then used.

xmlDocPtr doc;
xmlXPathContextPtr context;
xmlChar *xpath;
xmlXPathObjectPtr result;

doc = xmlParseFile(argv[1]);
context = xmlXPathNewContext(doc);
result = xmlXPathEvalExpression(xpath, context);

I'm not sure what the prefix variable in xmlXPathRegisterNs means.

The queries I used are:

BR, Jovan

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]