Nmap Parser is a Perl module that simplifies the process of developing scripts and collecting information from the XML nmap scan data, which can be obtained by using nmap's -oX switch or from the file handle of a pipe to an nmap process. It uses the XML twig library for parsing, and supports filters.
7bb2e4baa261fb401c6973fa8a84f97e5b723f49fdc30b94d255fc3920860dde