This code hasn't been thoroughly tested, I'll see how things go when indexing a live repo. And XML parsing sucks in every language.