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.
12b1c24b3e86ca3aa2c20405f18056e443c224e8d90a77cccfd9aeb3b3348db7