How to generate code from Clang AST which is dumped in xml


I'm working on AST in xml format that Clang generates on some sample codes.

Is there a standard way of parsing this xml file, modifying it
(instrumenting original source code) and then generate instrumented code
from the xml file. I don't see any reference/documentation in this regards.

Please suggest any links to relevant information or sample codes to get an
idea from.

Many Thanks

Working on the XML dump is not recommended.

Please take a look at the following thread:

kk <> writes: