List Info

Thread: Re: Tool to help fill in structures from XML




Re: Tool to help fill in structures from XML
user name
2007-01-24 05:04:32
Hi David, > Does anybody know of a good tool which takes the drudgery out of reading > XML into structures? FYI - We have a tool that takes an XML Schema, and generates C++ classes with all the marshalling and unmarshalling machinery. For more info, see: http://www.tech-know-ware.com/lmx However, my take of your example (below) is slightly different from your descriptive question. If your example is closer to what you want, the Boost library has an object serialization component. You may not get the exact XML that you are looking for, and it might involve a little drudgery, but it might help. HTH, Pete. > Specifically, what I'd like would be a tool that allows me to describe an > XML grammar (e.g. via RelaxNG) and a structure layout, and then generate > tables or code that would read an XML file and store the incoming elements > into objects in C++. > > e.g. given > > struct some_struct > { > int a; > int b:4; > enum {larry,moe,curly} stooge; > }; > > parse > > 4 > > > > and give me a filled-in some_struct object. Obviously, there would have to > be some other file which mapped the XML entities into the structure (and > vis-versa) - ideally some XML file which, when chewed upon by the proper > tool, would spit out C++ code and a RelaxNG schema. > > Does anybody know of such a tool? -- ============================================= Pete Cordell Tech-Know-Ware Ltd for XML to C++ data binding visit http://www.tech-know-ware.com/lmx (or http://www.xml2cpp.com) ============================================= _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xmlgnome.org http://mail.gnome.org/mailman/listinfo/xml
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )