added XML generation mechanism to markdown parser