Shell SCript to read XML tags and the data within that tag
Hi unix Gurus,
I am really new to Unix Scripting. Please help me to create a shell script which reads the xml file and from that i need to fetch a particular information.
For example
<SOURCE BUSINESSNAME ="" DATABASETYPE ="Teradata" DBDNAME ="DWPROD3" DESCRIPTION ="" NAME ="ACTRL_BNFT_KEY_DMN" OBJECTVERSION ="1" OWNERNAME ="COC_V20_ETL_APPL" VERSIONNUMBER ="1">
<SOURCEFIELD BUSINESSNAME ="" DATATYPE ="varchar" DESCRIPTION ="" FIELDNUMBER ="1" FIELDPROPERTY ="0" FIELDTYPE ="ELEMITEM" HIDDEN ="NO" </SOURCE>
From the above xml file , I have to read the xml file and get the source name from the file as the below output.
SOURCE ->ACTRL_BNFT_KEY_DMN.
Please help me UNIX Gurus.
|
Recent comments
1 day 8 hours ago
1 day 11 hours ago
1 day 23 hours ago
2 days 1 hour ago
2 days 6 hours ago
2 days 12 hours ago
2 days 21 hours ago
2 days 23 hours ago
3 days 7 hours ago
3 days 9 hours ago