Using the following xport command in rrdtool 1.3.5 results in non-xml text being inserted at the beginning of the xml, as shown. This is confusing my xslt parser (which uses an xsl to transform rrdtool xport into csv). The xslt processor is xsltproc and this is all running on Red Hat Linux 5 x86_64. It wasn't like this in rrdtool 1.2.<br>
<br>Is this a bug or is there a way to prevent the non-xml text from being at the front of the xml file produced by rrdtool xport? It seems like this data should be in the <meta> section. If you think it's a bug I'll hop on the developer list and submit a patch.<br>
<br>(And is anyone interested in the xsl I use to export an RRD xport as csv?)<br><br>Thanks!<br><br>$ /usr/bin/rrdtool xport DEF:a="./vpms_rhel4_df_P_t_ext3/%2Fvar%2Fnetlog.rrd":ktotal:MAX DEF:b="/var/rrds/prod-ux-log1/vpms_rhel4_df_P_t_ext3/%2Fvar%2Fnetlog.rrd":kused:MAX CDEF:cdefa=a,1024,* CDEF:cdefb=b,1024,* XPORT:cdefa:"Bytes Total" XPORT:cdefb:"Bytes Used"<br>
<b>Bytes Total:300<br>Bytes Used:300<br>step: 300</b><br><?xml version="1.0" encoding="ISO-8859-1"?><br><br><xport><br> <meta><br> <start>1231101900</start><br> <step>300</step><br>
<end>1231188000</end><br> <rows>288</rows><br> <columns>2</columns><br> <legend><br> <entry>Bytes Total</entry><br> <entry>Bytes Used</entry><br>
</legend><br> </meta><br> <data><br> <row><t>1231101900</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br> <row><t>1231102200</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br>
<row><t>1231102500</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br> <row><t>1231102800</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br>
<row><t>1231103100</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br> <row><t>1231103400</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br>
<row><t>1231103700</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br> <row><t>1231104000</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br>
<row><t>1231104300</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br> <row><t>1231104600</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br>
<row><t>1231104900</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br> <row><t>1231105200</t><v>2.0289865728e+11</v><v>2.0289859584e+11</v></row><br>
...snip...<br><br>$ rrdtool --version<br>RRDtool 1.3.5 Copyright 1997-2008 by Tobias Oetiker <tobi@oetiker.ch><br> Compiled Dec 16 2008 10:53:37<br>$ xsltproc --version<br>Using libxml 20626, libxslt 10117 and libexslt 813<br>
xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt 813<br>libxslt 10117 was compiled against libxml 20626<br>libexslt 813 was compiled against libxml 20626<br>$ uname -a<br>Linux localhost 2.6.18-92.1.10.el5 #1 SMP Wed Jul 23 03:56:11 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux<br>
<br>conzyor atsign gmail decimal com<br>