Tuesday, May 20, 2014

parsing xml

a clever website did terrible things to a simple csv file, putting it into xml column major, blech.  So, I'm going to try to fix it.

First step, use tidy to figure out the xml format
   tidy -indent -xml

Next, use XML::Rabbit .... rabbit seems to be giving me some trouble, I'll probably try again later with just XML::LibXML

Got it done with XML::LibXML, there weren't any good examples that I could quickly find on the net, but it wasn't too bad after a little bit of working with it.

No comments: