Hi all -
I was hoping that someone on the list could help with my thinking about parsing the http:response values from a request; I've tried the following, but I'm not thinking about this correctly.
declare namespace oai = "http://www.openarchives.org/OAI/2.0/"; declare namespace h = "http://expath.org/ns/http-client"; http:send-request(<http:request method='get' href=' http://export.arxiv.org/oai2?verb=Identify%27/%3E)//@status/data()
returns '200', but trying
http:send-request(<http:request method='get' href=' http://export.arxiv.org/oai2?verb=Identify%27/%3E)/h:response/@status
fails.
I'm guessing (but am not sure) that the combination of the http:response with the body of the response is causing my problem, but I'm not sure how to wiggle my way around it.
Note: this is not in a RESTXQ context (yet), but for my simple trials is there a way to get at the http -namespace elements? Thank you for your time and trouble. Best, Bridger