Fuck me, this code is terrible. It isn't even an XML parser, it’s doing string matching for specific tags. It's so fragile it’s ridiculous.