I have to read wikidumps and extract the headings, bold words, italics, etc. The formatting is done in wikicode. How can I read the wiki markup? I am using pugiXML to parse the document but I have no idea how to read the wiki markup and extract the text. How can I do this?