C Structure to XML

S

Sasidhar

Hi,
I have some C structures defined as part of the system we are
currently implementing. For testing the system I would like to fill
these structures with different values read from a file and call the
functions. I am thinking of using XML as the file format.
Are there any tools that will generate a DTD from the C structures so
that I can verify that the contents of the xml files have all the
fields in the c structure.



Thanks in advance,
Sasidhar
 
I

Ira Baxter

Sasidhar said:
Hi,
I have some C structures defined as part of the system we are
currently implementing. For testing the system I would like to fill
these structures with different values read from a file and call the
functions. I am thinking of using XML as the file format.
Are there any tools that will generate a DTD from the C structures so
that I can verify that the contents of the xml files have all the
fields in the c structure.

To do this, you need a tool that can fully parse C source code.
Our DMS Software Reengineering Toolkit has a full C
source code parser, and could easily be configured to
spit out DTDs for each structure.

See http://www.semanticdesigns.com/Products/DMS/DMSToolkit.html.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top