I am completely new to bash scripting and now need to write a bash script that would parse a XML file and take out values from specific tags.
I tried using xsltproc, xml_grep commands. But the issue is that the XML i am trying to parse is not UTF 8. so those commands are unable to parse my XML's or i am unable to find a woraround for that in xsltproc or xml_grep
Can some one help me in writing a direct script code (something other than utilities like xsltroc or xml_grep) that would pull me the value of the <url></url> tag irrespective the xml being well formed or not
This is the sample xml below
<site>
<form>
<url>http://www.bankoamerica.com/state.cgi?section=signin</url>
<method>GET</method>
</form>
</site>
Note: Use CODE-tags when displaying code, data or logs for better readability and to keep formatting like indention etc., ty.