A quick and dirty solution using
perl:
Code:
perl -ne 'm,<asd>(.+)</asd>, and print "$1\n" ' file.xml
or
sed
Code:
sed -ne 's,<asd>\(.*\)</asd>,\1,p' file.xml
But note that this won't work if the XML has more than one item_id tag on a line like
<item_id>000111111</item_id><item_id>000111111</item_id>
Then it gets tricky.