Added redirect parsing to XMLSource.fromXML, made it more consistent.

Using pattern matching instead of if-else. Also, this change makes the parsing more similar to WikipediaDumpParser.readPage() for consistency.
Fix formatting, similar to rest of file.
Merge pull request #233 from nilesh-c/fromxml

Added redirect parsing to XMLSource.fromXML and made it more consistent.