1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-06 21:46:34 +00:00

Add the new <target> element to XML output.

This element is intended to report information about command-line target
specifications. Now it's used with status="skipped" to indicate that a
specification was ignored.
This commit is contained in:
david
2012-05-04 15:04:41 +00:00
parent a3efccc448
commit 5067f767b7
3 changed files with 29 additions and 2 deletions

View File

@@ -72,7 +72,7 @@
It represents to the topmost element of the output document.
-->
<!ELEMENT nmaprun (scaninfo*, verbose, debugging,
( taskbegin | taskprogress | taskend |
( target | taskbegin | taskprogress | taskend |
prescript | postscript | host | output)*,
runstats) >
<!ATTLIST nmaprun
@@ -103,6 +103,12 @@
<!ELEMENT debugging EMPTY >
<!ATTLIST debugging level %attr_numeric; #IMPLIED >
<!ELEMENT target EMPTY >
<!ATTLIST target specification CDATA #REQUIRED
status (skipped) #IMPLIED
reason (invalid) #IMPLIED
>
<!-- this element is written in timing.c:beginOrEndTask() -->
<!ELEMENT taskbegin EMPTY >
<!ATTLIST taskbegin