concept NSE script output in category security

This is an excerpt from Manning's book The Art of Network Penetration Testing.
Thankfully, like all good security tools, nmap produces an XML output. XML, which is short for extensible markup language is a really powerful format for storing relational information about a list of similar but different objects in a single ASCI file. With XML you can break up the results of your scan into high level nodes called hosts. Each of those hosts possess sub nodes or “child nodes” called ports or services. Those child nodes could potentially have their own child nodes in the form of NSE script output. Nodes can also have attributes, for example a port/service node might have attributes named port_number, service_name, service_version and so on. Here is an example of what a host node might look like using the format that nmap stores inside the .xml scan file.