nmap xml file grep

view story

http://www.backtrack-linux.org – Hi All, can anyone assist in what im aiming for? I need to grep a nmap scan to save and cat the following lines in a xml file for product versions: <port protocol="tcp" portid="21"><state state="open" reason="syn-ack" reason_ttl="64"/><service name="ftp" product="vsftpd" version="2.3.4" ostype="Unix" method="probed" conf="10"><cpe>cpe:/a:vsftpd:vsftpd:2.3.4</cpe></service><script id="ftp-anon" output="Anonymous FTP login al (HowTos)