code generator using gccxml and libxml++ for example usage take a look at the libt2n-example package