See XML example below.
Using a bash script, how could I extract the Strings between all the "from" tags in the XML file into say, an array?
i.e. Something like array=[Ben, Jani, James, Harry, ...]
Example XML file:
<note>
<to>Tove</to>
<from>Ben</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<note>
<to>Tove</to>
<from>James</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>