I'm trying to write a piece of code to export a proprietary DB into XML.
I have a chunk of code to write the XML, but I need to pull a structure in and read from it into the chunk.
Easy enough, but the higher powers need it portable, so if the structure/database changes we don't need to change the XML port.
Anyone got a way to:
A) Read a structure, and find out how many members it has and their datatypes?
B) Look at a variable and find its type?
Any help appreciated...
PS - If you have a piece of C code that'll take a structure and output XML complete with heirarchy, I'll listen!
I have a chunk of code to write the XML, but I need to pull a structure in and read from it into the chunk.
Easy enough, but the higher powers need it portable, so if the structure/database changes we don't need to change the XML port.
Anyone got a way to:
A) Read a structure, and find out how many members it has and their datatypes?
B) Look at a variable and find its type?
Any help appreciated...
PS - If you have a piece of C code that'll take a structure and output XML complete with heirarchy, I'll listen!