On Wed, Mar 4, 2009 at 2:47 AM, Belgabor <[email protected]> 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
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to