Quando tento reproduzir seus passos, tenho dois problemas:
-
EntityRef: expecting ';'
Parece que o documento de origem usa & , onde deve usar & .
Eu consertei isso usando sed -i -e 's/&/&/g' xmlresult .
-
None of the XPaths matched; to match a node in the default namespace use '_' as the prefix (see section 5.1 in the manual).
Após a seção 5.1 , tentei adicionar -N services=http://www.ebay.com/marketplace/search/v1/services e colocar services: dentro da consulta XPath e agora eu recebo algo útil.
$ xmlstarlet sel -N services=http://www.ebay.com/marketplace/search/v1/services -t -v '//services:title' result.xml
DETECTIVE COMICS (1937 Series) #700 Near Mint Comics Book