parsenmap is a tool for parsing nmap xml file to csv or json.
parsenmap
Error handler
Nmap xml entities
Parse nmap xml file