Manual Parsing of xml file line by line

I used string tokenizer and split in tandem to extract required pair of{OwnerUserId, ParentId} from posts.xml of StackOverflow`s data dump.