Hands-on task
This task is step 19 of the course “JSON, YAML and XML in the terminal”
Get an element's text by XPath
/root/catalog.xml is a catalog of books. Extract the title (title) of the book with the identifier b2 and write its text to /root/title.txt.
What you'll practise:
- xmlstarlet
- xpath
- predicates
- attributes
- xml