[xsd-users] Re: XML code generator
Boris Kolpackov
boris at codesynthesis.com
Tue Aug 29 14:03:49 EDT 2006
Hi Jeff,
I've CC'ed xsd-users mailing list to my reply in case somebody has
or will have a similar question.
Gonzales, Jeff <jeff.gonzales at aristocrat-inc.com> writes:
> I have a question about your C++ XML code generator. Can it manipulate
> XML encoded as a literal string?
Yes, it can do this via std::istringstream. The code would look like
this (based on the hello example):
#include <sstream>
std::istringstream istr ("your XML goes here");
auto_ptr<hello_type> h (hello (istr));
hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060829/78ad88f8/attachment.pgp
More information about the xsd-users
mailing list