code generator using gccxml and libxml++ for example usage take a look at the example-codegen directory.