Mercurial > hg > lukkari
comparison parsedata.pl @ 77:49a329e87367
Adjust some tag names to be more sane in the XML output.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 24 Oct 2012 07:51:50 +0300 |
parents | 3d9e42477367 |
children | 4faf9956741b |
comparison
equal
deleted
inserted
replaced
76:d1b65d9903ab | 77:49a329e87367 |
---|---|
518 | 518 |
519 elsif ($opt_mode eq "xml") { | 519 elsif ($opt_mode eq "xml") { |
520 print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n". | 520 print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n". |
521 "<timetable>\n". | 521 "<timetable>\n". |
522 " <class>\n". | 522 " <class>\n". |
523 " <general>".join("", map { "<node>".$_."</node>"; } @{$class{"info"}})."</general>\n". | 523 " <general>".join("", map { "<item>".$_."</item>"; } @{$class{"info"}})."</general>\n". |
524 " <info>".join("", map { "<node>".html_collapse($_, 1)."</node>"; } @{$class{"data"}})."</info>\n". | 524 " <info>".join("", map { "<item>".html_collapse($_, 1)."</item>"; } @{$class{"data"}})."</info>\n". |
525 " <maxdays>$maxDays</maxdays>\n". | 525 " <maxdays>$maxDays</maxdays>\n". |
526 " <firsthour>$firstHour</firsthour>\n". | 526 " <firsthour>$firstHour</firsthour>\n". |
527 " <lasthour>$lastHour</lasthour>\n". | 527 " <lasthour>$lastHour</lasthour>\n". |
528 " <totalhours>$totalHours</totalhours>\n". | 528 " <totalhours>$totalHours</totalhours>\n". |
529 " </class>\n"; | 529 " </class>\n"; |