From: Dan D. <da...@de...> - 2003-10-25 22:44:13
|
On Thu, 2003-10-23 at 23:03, Tim wrote: > 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 I don't like this either. It is due to the use of a map in the sax parser to collect the xml attributes, which by nature is key-ordered. Since there are not typically a huge number of attributes, would it be better to just use a vector and iterate on lookup? |