XML noob here.
If a stanza has <favorite>true</favorite> i want to only print the info in <path>XXXX</path>
I've been banging my head against the wall with xml_grep & xmllint trying to extract what i feel is a very simple amount of information. Maybe these are the wrong tools? would some python just be the easiest way to go about this? i have no idea how to write that, though
<fileList>
<file>
<path>./filename.zip</path>
<name>My Filename</name>
<favorite>true</favorite>
<lastaccessed>20210406T130359</lastaccessed>
</file>
</fileList>