13

How do I extract the third field in an xml entry?

view full story
linux-howto

http://www.unix.com – I have the following XML entry - I need to extract the contents of the third defined variable, Asset_Name. Code: <AMS Asset_Class="package" Asset_ID="XXXXXXXXXXXXXXXXXXXX" Asset_Name="MOVIE_XXXXXXXXXXX_XXXXXXXX" Creation_Date="2011-09-13" Description="test asset package" Product="MOD" Provider="XXXXXXXX" Provider_ID="XXXXXX.XXX" Verb="" Version_Major="1" Version_Minor="0" /> I need to get a variable defined with the contents of Asset_Name. How do I pull this out? Awk? What (HowTos)