[libxml++] sax parser
- From: Tim <tim sterlingmicros com au>
- To: libxmlplusplus-general lists sourceforge net
- Subject: [libxml++] sax parser
- Date: Fri, 24 Oct 2003 13:03:38 +1000
Hi everyone
I am using the sax parser example together with this xml file (see below). The
xml file is from a ISP and just reports your usage and any meassges, your
plan etc,the format for this file doesn't change only the data obviouslly. My
problem is the order in which things get printed to the screen, for eg... in
the <MESSAGE the "TITLE" comes after "TEXT", when using that sax_example how
can i change the order in which it is printed because i would like to be able
to print the "title" and than "test" in that order. Also i need to be able to
add up the "DOWNLOADS" in <DATA to give a total. Any help would be great
Thanks
*******************************XML-FILE********************************************
<USAGE START_DATE="21-10-2003" GRANULARITY="DAY" VERSION="3"
END_DATE="20-11-2003">
<TRAFFIC DESCRIPTION="Normal Billable Traffic">
<DATA UPLOADS="0" DOWNLOADS="51" TYPE="Standard" TIMESTAMP="2003-10-21
00:00:00"/>
<DATA UPLOADS="0" DOWNLOADS="199" TYPE="Standard" TIMESTAMP="2003-10-22
00:00:00"/>
<DATA UPLOADS="0" DOWNLOADS="64" TYPE="Standard" TIMESTAMP="2003-10-23
00:00:00"/>
<DATA UPLOADS="0" DOWNLOADS="2" TYPE="Standard" TIMESTAMP="2003-10-24
00:00:00"/>
</TRAFFIC>
<TRAFFIC DESCRIPTION="Free Traffic">
<DATA UPLOADS="0" DOWNLOADS="0" TYPE="Standard" TIMESTAMP="2003-10-21
00:00:00"/>
<DATA UPLOADS="0" DOWNLOADS="0" TYPE="Standard" TIMESTAMP="2003-10-22
00:00:00"/>
<DATA UPLOADS="0" DOWNLOADS="1" TYPE="Standard" TIMESTAMP="2003-10-23
00:00:00"/>
<DATA UPLOADS="0" DOWNLOADS="0" TYPE="Standard" TIMESTAMP="2003-10-24
00:00:00"/>
</TRAFFIC>
<DATABLOCKS/>
<MESSAGE TEXT="Between 5:15pm to 6:10pm there was a disruption to the ADSL
Service in Canberra. We apologise for any inconvenience this may have caused.
" ID="1066621200" TITLE="Canberra ADSL disruption" TIMESTAMP="Sun Oct 19
22:40 2003"/>
<MESSAGE TEXT="We are currently experiencing dataflow problems for ADSL
customers in Canberra. At this stage only SOHO and Home ADSL customers are
affected. This is being investigated. " ID="1067005500" TITLE="Service
Disruption: Canberra" TIMESTAMP="Fri Oct 24 09:25 2003"/>
<MESSAGE TEXT="The disruption to service in Canberra is resolved. Restore
time: 9:49am EST " ID="1067007720" TITLE="Service Disruption: Canberra
RESOLVED" TIMESTAMP="Fri Oct 24 10:02 2003"/>
<PLAN DESCRIPTION="Home 512 Flat Rate">
<LIMIT NAME="Standard" MEGABYTES="6000"/>
</PLAN>
</USAGE>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]