Code

added pointer to florian forsters dtd to the rrd dumpt
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 23 Mar 2008 13:43:22 +0000 (13:43 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 23 Mar 2008 13:43:22 +0000 (13:43 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1311 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_dump.c

index 7a904f3401907604820767af9cb63aa4f1256532..f84adbc3a4c8e0cab5c568fb0e9e6eb386019504 100644 (file)
@@ -98,6 +98,8 @@ int rrd_dump_r(
         out_file = stdout;
     }
 
+    fputs("<?xml version="1.0" encoding=\"utf-8\"?>", out_file);
+    fputs("<!DOCTYPE rrd SYSTEM \"http://oss.oetiker.ch/rrdtool/rrdtool.dtd\">", out_file);
     fputs("<!-- Round Robin Database Dump -->", out_file);
     fputs("<rrd>", out_file);
     if (atoi(rrd.stat_head->version) <= 3) {