1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +00:00

Add a description of XML output to the Ndiff man page. Still need to

fill in the output examples.
This commit is contained in:
david
2009-07-16 19:26:35 +00:00
parent 8ed86b8696
commit 8ad317c706

View File

@@ -131,6 +131,34 @@
<example id="ndiff-man-ex-text-output">
<title>Ndiff text output</title>
<screen>
</screen>
</example>
<para>
XML output, intended to be processed by other programs, is selected
with the <option>--xml</option> option. It is based on Nmap's XML
output, with a few additional elements to indicate differences. The
XML document is enclosed in <varname>nmapdiff</varname> and
<varname>scandiff</varname> elements. Host differences are enclosed
in <varname>hostdiff</varname> tags and port differences are
enclosed in <varname>portdiff</varname> tags. Inside a
<varname>hostdiff</varname> or <varname>portdiff</varname>,
<varname>a</varname> and <varname>b</varname> tags show the state of
the host or port in the first scan (<varname>a</varname>) or the
second scan (<varname>b</varname>).
</para>
<para>
<xref linkend="ndiff-man-ex-xml-output"/> shows the XML diff of the
same scans shown above in
<xref linkend="ndiff-man-ex-text-output" xrefstyle="select: label"/>.
</para>
<example id="ndiff-man-ex-xml-output">
<title>Ndiff XML output</title>
<screen>
<![CDATA[
]]>
</screen>
</example>
</refsect1>