Closed mbojan closed 5 years ago
@mbojan no reason. plz do go with xpath, looks like you already are doing that in your branch
I think this can be closed. I used xpath in new code, but perhaps it does not make sense to modify existing code that uses xml_children
if it works...
I'll at least try with other fxns
Is there a reason why
while_oai
and other functions use nestedxml_children
calls to extract various elements from the result (likeresumptionToken
, errors, etc.)? I think the OAI-PMH specification does not specify the order of the tags so different services might return these in different order. Using XPath seems simpler.One trouble with XPath is handling namespaces. This might be dodged with
local-name()
like here http://stackoverflow.com/questions/16717211/getting-elements-with-default-namespace-no-namespace-prefix-using-xpath