I Had the same problem.
Solved it by registering the namespace; http://www.w3.org/2005/sparql-results#.
like this :
$xp->registerNamespace("wtf","http://www.w3.org/2005/sparql-
results#");
$query="/wtf:sparql/wtf:results .... etc


On May 23, 10:50 pm, Terry Brooks <[email protected]> wrote:
> Does anyone have an example of making a GM_xmlhttpRequest to DBPedia with the 
> mime type 'application/sparql-results+xml'?  The payload is recognized as an 
> XML object, but I can't seem to make a successfulXPathqueryinto this object.  
> All resulting nodelists following the directions of "Using the Mozilla 
> JavaScript Interface toXPath" 
> (http://www-xray.ast.cam.ac.uk/~jgraham/mozilla/xpath-tutorial.html) are zero 
> length.
>
> Has anyone received an XML payload from DBPedia and be able to unpack it 
> withXPath?
>
> Thanks, Terry
>
> Terrence Brooks
> Information School
> University of Washington
> Voice: 206 543-2646
> Fax: 206 616-3152
> E-mail: [email protected]
> Web:http://faculty.washington.edu/tabrooks/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to