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.
dac4ca1a6fea3548a0920a2be3347bbd7d46166ad9080a8403533fbca96928dc