*** DEMO CODE! DO NOT USE IN PRODUCTION! ***
Although dump itself is being parsed and re-generated quite correctly, WikitextParser itself is a quick hack and a joke, not a real one. Parsoid should be used in the future, if I'll get the time to adapt it.
An example of QuestPC framework XML parsers usage to process MediaWiki XML dumps. https://bitbucket.org/sdvpartnership/questpc-framework