OK I have my xml converter working the way it should now. I ended up using XML::Writer. This
was a very simple module to use and produced the XML with no fuss.
I have automated this on a testing machine so the build of cm-data.xml will happen nightly.
There is still much java work to be done on the consumer end. I've just begun to scratch the surface on this next phase of getting all courses 'loaded' (should read available) :-).
The perl app could also use some tweeking on the speed. However, this is building quite a lot of data.
[kpfoote@phoenix]~/projects/sakai/misc/CM_work% ./xmlconvert_DEV.pl -a -f term-dates.txt,crs-i-overall.txt,crs-s-overall.txt
[INFO] checking file names ............................. [SUCCESS]
[INFO] files verified .................................. [SUCCESS]
[INFO] academic-sessions processed ..................... [SUCCESS] [000.001] [ 3]
[INFO] canonical-courses processed ..................... [SUCCESS] [000.134] [ 528]
[INFO] course-offerings processed ...................... [SUCCESS] [000.417] [ 898]
[INFO] enrollment-sets processed ....................... [SUCCESS] [126.453] [ 898]
[INFO] term 200810, start: 05/09/2008, end: 08/15/2008 . [SUCCESS]
[INFO] cm-data.xml written ............................. [SUCCESS] [127.010]
[kpfoote@phoenix]~/projects/sakai/misc/CM_work%
[INFO] checking file names ............................. [SUCCESS]
[INFO] files verified .................................. [SUCCESS]
[INFO] academic-sessions processed ..................... [SUCCESS] [000.001] [ 3]
[INFO] canonical-courses processed ..................... [SUCCESS] [000.134] [ 528]
[INFO] course-offerings processed ...................... [SUCCESS] [000.417] [ 898]
[INFO] enrollment-sets processed ....................... [SUCCESS] [126.453] [ 898]
[INFO] term 200810, start: 05/09/2008, end: 08/15/2008 . [SUCCESS]
[INFO] cm-data.xml written ............................. [SUCCESS] [127.010]
[kpfoote@phoenix]~/projects/sakai/misc/CM_work%
Posted by Kevin Foote in sakai on July 02, 2008

