Translations:Manual:Preprocessor DOM.php/3/en

As an intermediate step it creates an XML DOM representation of the wikitext (see also Help:ExpandTemplates#XML parse tree).