mirror of
https://github.com/nmap/nmap.git
synced 2026-01-15 10:59:01 +00:00
Change nmap.dtd to include some elements and attributes used by Zenmap. These
are the profile_name attribute of the nmaprun element, the comment attribute of the host element, and the output element. All of them are optional so this new DTD is backwards-compatible. The output element is a replacement for what was the nmap_output attribute in Zenmap. It just holds the plain text of interactive output. It can be interpersed in chunks with the host elements, though Zenmap always writes it in one big block.
This commit is contained in:
@@ -72,13 +72,14 @@
|
||||
<!-- This element was started in nmap.c:nmap_main().
|
||||
It represents to the topmost element of the output document.
|
||||
-->
|
||||
<!ELEMENT nmaprun (scaninfo*, verbose, debugging, ((taskbegin, taskprogress*, taskend) | host)*, runstats) >
|
||||
<!ELEMENT nmaprun (scaninfo*, verbose, debugging, ((taskbegin, taskprogress*, taskend) | host | output)*, runstats) >
|
||||
<!ATTLIST nmaprun
|
||||
scanner (nmap) #REQUIRED
|
||||
args CDATA #IMPLIED
|
||||
start %attr_numeric; #IMPLIED
|
||||
startstr CDATA #IMPLIED
|
||||
version CDATA #REQUIRED
|
||||
profile_name CDATA #IMPLIED
|
||||
xmloutputversion CDATA #REQUIRED
|
||||
>
|
||||
|
||||
@@ -138,6 +139,7 @@
|
||||
<!ATTLIST host
|
||||
starttime %attr_numeric; #IMPLIED
|
||||
endtime %attr_numeric; #IMPLIED
|
||||
comment CDATA #IMPLIED
|
||||
>
|
||||
|
||||
<!-- these elements are written by output.c:write_xml_initial_hostinfo() -->
|
||||
@@ -309,6 +311,10 @@
|
||||
to CDATA #REQUIRED
|
||||
>
|
||||
|
||||
<!-- For embedding another type of output (screen output) like Zenmap does. -->
|
||||
<!ELEMENT output (#PCDATA)>
|
||||
<!ATTLIST output type (interactive) #IMPLIED>
|
||||
|
||||
<!-- these elements are generated in output.c:printfinaloutput() -->
|
||||
<!ELEMENT runstats (finished, hosts) >
|
||||
|
||||
|
||||
Reference in New Issue
Block a user