Situation:
I am using Nmap to do network scanning and would like to create a script that takes some Nmap output in XML and parses it and based on that prints the information I want.
Problem Description:
This parser should:
Be able to be to take a given input and produce an output
The input should be an XML File.
The output should be one of these 2 things:
- Be able to print text on the terminal
- Be able to output processed information to a text file, or an HTML one.
Conclusion:
I need to build a parser that has the above-mentioned functionality, how do I implement it? Or, if possible, is there any ready-built solution that has the required functionality?
Edit 1: I would like to use a bash script, and a bash script is the most preferred answer, but I am open to other languages also.