I believe there is a mistake in this quiz!

Hi

In eJPTv2 under the course Assessment Methodologies: Footprinting & Scanning, Evasion, Scan Performance & Output section there is a quiz:

Which output format in Nmap provides a machine-readable format that can be easily parsed by scripts and tools?

-oX
-oG
-oS
-oN

As I understand from the instructor from later Labs the correct answer it should be -oX cause tools like msfconsole can import it.

and I found this :

Output | Nmap Network Scanning

XML offers a stable format that is easily parsed by software. Free XML parsers are available for all major computer languages, including C/C++, Perl, Python, and Java. People have even written bindings for most of these languages to handle Nmap output and execution specifically.

however, when I choose -oX I found that my answer is wrong!

The correct answer is -oG !

So is -oG the correct answer ?

Assalamu Alaikum wa Rahmatullahi wa Barakatuh,
I also think that the correct answer is -oX, but I believe the question is not well-posed or might be tricky. This is because the -oG option can be easily parsed using tools like grep, sed, awk, or by combining all of them, as Alexis Ahmed did. On the other hand, XML is easy to parse using tools in Python, C/C++, or Perl, as you mentioned. I think the tricky part lies in the interpretation of “machine-readable.”