Alex Rivera | Logout

what's the easiest way to generate xml in c++?

Asked 2008-11-19T21:07:59.323
18

I've used boost serialization but this doesn't appear to allow me to generate xml that conforms to a particular schema -- it seems it's purpose was to just to persist a class's state.

Platform: linux

What do you guys use to generate NOT parse xml?

So far I'm going down Foredecker's route of just generating it myself -- it's not a large document but I really shouldn't be having this much trouble finding a decent library to generate it correctly.

As for boost, the things that I would like to be able to do is set the node names, set attributes in my nodes, and get rid of all the extra crap that comes with it as I don't really care about having to put my document back into that class.

Edit
Report

1 Answer

0

I haven't actually tried boost serialization to do this, but as I understand it, if you very carefully pick your options, you can set lots of different options in the schema (such as preventing pointer flyweighting and setting the element names for certain types)

answered 2008-11-19T21:39:28.903

Your Answer