mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Add DOCTYPE declaration to Nmap XML
This commit is contained in:
parent
fc00179731
commit
0f5e87c8be
1 changed files with 1 additions and 0 deletions
1
nmap.cc
1
nmap.cc
|
|
@ -1709,6 +1709,7 @@ int nmap_main(int argc, char *argv[]) {
|
|||
chomp(mytime);
|
||||
char *xslfname = o.XSLStyleSheet();
|
||||
xml_start_document();
|
||||
log_write(LOG_XML, "<!DOCTYPE nmaprun PUBLIC \"-//IDN nmap.org//DTD Nmap XML %s//EN\" \"https://svn.nmap.org/nmap/docs/nmap.dtd\">\n", NMAP_XMLOUTPUTVERSION);
|
||||
if (xslfname) {
|
||||
xml_open_pi("xml-stylesheet");
|
||||
xml_attribute("href", "%s", xslfname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue