Nmap Development mailing list archives
Re: Suggestion: Using script output - Human-readable and machine-parseable
From: David Fifield <david () bamsoftware com>
Date: Thu, 7 Apr 2011 09:27:58 -0700
On Thu, Apr 07, 2011 at 06:54:48AM -0500, Daniel Miller wrote:
I'll try to get the XML translation part done in the next week or so, and we'll see if you have the same concerns. One issue I anticipate is that the less-structured nature of script output means we can't write a DTD that defines Nmap's XML output anymore. I don't know as much about that, but if someone could offer input on how to define a schema that includes arbitrary tags, that'd be great.
I think that's the wrong approach. You can't have arbitrary tags. (How would a parser know what to do with them?) Instead you need to represent the tree somehow. I don't think http://yaml.org/xml.html applies. Their example is <invoice xmlns:yaml="http://yaml.org/xml"> <number>34843</number> <date>2001-01-03</date> </invoice> We would need something more like <invoice> <dict> <elem key="number">34843</elem> <elem key="date">2001-01-03</date> </dict> </invoice> In other words, you're representing data structures like dictionaries and arrays, not semantic units like numbers and dates. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: Suggestion: Using script output - Human-readable and machine-parseable Daniel Miller (Apr 01)
- <Possible follow-ups>
- Re: Suggestion: Using script output - Human-readable and machine-parseable David Fifield (Apr 02)
- Re: Suggestion: Using script output - Human-readable and machine-parseable Ron (Apr 03)
- Re: Suggestion: Using script output - Human-readable and machine-parseable Daniel Miller (Apr 05)
- Re: Suggestion: Using script output - Human-readable and machine-parseable Daniel Miller (Apr 06)
- Re: Suggestion: Using script output - Human-readable and machine-parseable Fyodor (Apr 06)
- Re: Suggestion: Using script output - Human-readable and machine-parseable David Fifield (Apr 06)
- Re: Suggestion: Using script output - Human-readable and machine-parseable Daniel Miller (Apr 07)
- Re: Suggestion: Using script output - Human-readable and machine-parseable David Fifield (Apr 07)
- Re: Suggestion: Using script output - Human-readable and machine-parseable David Fifield (Apr 07)
- Re: Suggestion: Using script output - Human-readable and machine-parseable David Fifield (Apr 18)
- Re: Suggestion: Using script output - Human-readable and machine-parseable Daniel Miller (Apr 19)