[xsd-users] C++ tree introspection and self serialization?

Michaloski, John L. john.michaloski at nist.gov
Fri Apr 10 16:45:00 EDT 2015


I am trying to write xml to database. (I already used CodeSynthesis to parse/serialize XML data).

I am using Xerces to parse the XSD to create the SQL statements to generate the data base (somewhat automated somewhat hand crafted). Couldn't tell if CodeSynthesis handled this.

I would like to populate the CodeSynthesis C++ tree and then save it to a Database as well as an XML file. (I am using Postgres since its array structure seems to handle <elements><element>...</element><element> ... </element> .. pattern easiest.) Bunch of CodeSynthesis questions. Does CodeSynthesis:

1)      Support xsd.exe flags to generate SQL statements (although a standard I realize they vary from vendor to vendor).

2)      Non-XML serialization (to Database).  Would mean starting at root and knowing where the child nodes are (in CodeSynthesis, not Xerces).

3)      Introspection - so if I can navigate I know what node I'm at. I'm assuming I can use Xerces get node to retrieve element name.

CodeSynthesis seems to offer a lot, often I just have trouble figuring out how to do some things.

John



More information about the xsd-users mailing list