3 ms·
In similar situations I just use a SAX parser, that's what it's for. I don't know about Ruby, but it's quick and easy in Python. And once you've written one SAX
by gaius 18y ago
In similar situations I just use a SAX parser, that's what it's for. I don't know about Ruby, but it's quick and easy in Python. And once you've written one SAX application, you can easily use it as the basis for the next.
- mattjaynes 18y agoTotally. If I had had to do anything much more complex, I may have had to resort to SAX. I was just too lazy to mess with it for this - and I'm a bit OCD sometimes about writing the least amount of code possible ;)