I have a structure represented as follows: (Example)

struct struct3
   struct structchild4
      float child5;
   } child6;
   unsigned int child7;
I want this to be represented as follows in XML:

<tag1= "struct3">
<tag_ref = "structchild4">
<tag2= "child7">
<value> </value>

The method I'm following is that I'm converting this into a gccXML format and I then parse it using Visual C++. I use the xerces-c DOM parser.

Could anyone suggest how to go about doing this? Thanks!