Has anyone implemented an XML parser for boost::program_options? I have just started looking into using this library but I need to read/write XML files. Before digging in and doing it myself I thought I'd ask if anyone has looked at the problem. Thanks, Jason Stewart
As far as I know, most people use the Qt libraries (or derivatives) for this... Simon Monckton On Wed, 2005-04-27 at 12:34, Jason Stewart wrote:
Has anyone implemented an XML parser for boost::program_options? I have just started looking into using this library but I need to read/write XML files. Before digging in and doing it myself I thought I'd ask if anyone has looked at the problem.
Thanks,
Jason Stewart
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
"Jason Stewart"
Has anyone implemented an XML parser for boost::program_options? I have just started looking into using this library but I need to read/write XML files. Before digging in and doing it myself I thought I'd ask if anyone has looked at the problem.
Sounds interesting. Would this let you specify the program options as either commandline flags or as in XML input file? And, I think that boost.serialize has XML as one of it's formats, would you be able to use that as your XML parser?
Thanks,
Jason Stewart
At 02:42 PM 4/28/2005, you wrote:
"Jason Stewart"
wrote in message news:6.2.1.2.2.20050427143238.04174a08@pobox.com... Has anyone implemented an XML parser for boost::program_options? ...
Sounds interesting. Would this let you specify the program options as either commandline flags or as in XML input file?
That's my plan. I've got something working but it's somewhat of a hack. I used the response file example that's included with program_options and an internal library to parse the XML. Using this I build a vector of strings that I then pass to the command_line_parser. So, yes, with this scheme you can override config file settings on the command line.
And, I think that boost.serialize has XML as one of it's formats, would you be able to use that as your XML parser?
I haven't looked at boost::serialize. I'll try to do that soon. Jason
participants (3)
-
Jason Stewart
-
Robert Mathews
-
Simon Monckton