I know of two tools both of them are commercial products
http://www.codesynthesis.com/products/xsd/
- Is open source GPL - commercial licence is avalable for commercial use
- I think this is/was used by gSOAP
- http://www.artima.com/cppsource/xml_data_binding.html
http://www.codalogic.com/lmx/
- don't know any more than the web site
I hope this helps.
Update:
Just found this http://en.wikipedia.org/wiki/XML_data_binding#C.2B.2B
Update 2:
This is great, I have been looking for an open source package to do this for ages and your question has just helped my find it:
http://top.touk.pl/confluence/display/xmlbeansxxdoc/Introduction+to+xmlbeansxx
http://top.touk.pl/confluence/download/attachments/458767/Manipulate_XML_Documents_in_CPP_with_xmlbeansxx.pdf