mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
8d6a1c4df1
commit
45213685a9
1 changed files with 7 additions and 1 deletions
|
|
@ -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) >
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue