I'm trying to create a bash script to parse an xml file and save it to a csv file.
For example:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<List>
<Job id="1" name="John/>
<Job id="2" name="Zack"/>
<Job id="3" name="Bob"/>
</List>
I would like the script to save information into a csv file as such:
John | 1
Zack | 2
Bob | 3
The name and id will be in a different cell.
Is there any way I can do this?