xsd-based code generator to build xml?

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2009-06-10T14:40:22Z Indexed on 2010/04/17 1:53 UTC
Read the original article Hit count: 346

Filed under:
|
|

I have a schema (xsd), and I want to create xml files that conform to it.

I've found code generators that generate classes which can be loaded from an xml file (CodeSynthesis). But I'm looking to go the other direction.

I want to generate code that will let me build an object which can easily be written out as an xml file. In C++. I might be able to use Java for this, but C++ would be preferable. I'm on solaris, so a VisualStudio plugin won't help me (such as xsd2code).

Is there a code generator that lets me do this?

© Stack Overflow or respective owner

Related posts about c++

Related posts about Xml