Using xmlStar to get XML node attribute

0

I'm trying to get XML values from a rss feed XML using xmlStar:

https://www.youtube.com/feeds/videos.xml?channel_id=UC16niRr50-MSBwiO3YDb3RA

enter image description here

The XML paths are:

  • /feed/entry/title
  • /feed/entry/yt:videoId
  • /feed/entry/media:group/media:thumbnail/@url

I've tried following the doc and examples but I can extract nothing.

My goal is to print all /entry in /feed/. For example:

France paralysed by biggest strike in years - BBC News
6Mm1M-cdKqU
https://i3.ytimg.com/vi/6Mm1M-cdKqU/hqdefault.jpg

Azevedo

Posted 2019-12-05T17:48:49.790

Reputation: 511

What commands have you actually tried? – Mokubai – 2019-12-05T17:51:08.310

xml sel -t -v "/*" videos.xml – Azevedo – 2019-12-05T17:52:53.863

No answers