Modified nmap xml parser code