[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] xpath problem
- From: Jovan Kostovski <chombium gmail com>
- To: Belgabor <belgabor gmx de>
- Cc: xml gnome org
- Subject: Re: [xml] xpath problem
- Date: Wed, 4 Mar 2009 10:16:59 +0100
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);
xmlXPathRegisterNs(context,"","http://www.iec.ch/61850/2003/SCL");
result = xmlXPathEvalExpression(xpath, context);
I'm not sure what the prefix variable in xmlXPathRegisterNs means.
The queries I used are:
"/SCL"
"/SCL/Communication"
"/SCL/DataTypeTemplates"
BR, Jovan
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]