jQuery XML to HTML: complex calc and output, HELP~

baychaser

New Member
I'm a total newbie in scripting and unfortunately been recently assigned a task to parse XML to HTML files with a (imo) somewhat complex output requirement.Please take a look at my example XML file herehttp://ge13c.theborneopost.com/swf/xml2/election2008.xmlI'm requested to parse this XML to HTML table with the following requirement:
  • Output 30 sets average per page (can do it manually since its only 10+ pages, just need the script to select 1-30 sets for first page, then 31-60 sets etc)
  • Bold the sets with the tag status winner (blue square in pic)
  • Combine the table cells of all identical parlimen_seat's parlimen_seat and location to one cell (see red square in pic)
  • (optional but nice) give each winning party a color, for example sets with BN winners will be colored in blue, sets with PKR will be in red, etc.
reference pic:http://i.imgur.com/gDdcWJB.pngcan someone please show me the scripts on how to do this? It if FAR beyond my capability to come up with anything of that complexity since I've never written any script before... Much thanks!
 
Back
Top