[xsd-users] xsd to xml parser

ss ak ssak22 at gmail.com
Wed Aug 26 16:32:06 EDT 2009


I have generated the C++ binding using the below...

xsd.exe cxx-tree --root-element-first --generate-serialization
--generate-from-base-ctor --generate-default-ctor v4.xsd

using the classes,i filled in the values...

Now how to i make these classes into XML??? or print as an XML.


There is method in the set of generated methods...

parse (::xsd::cxx::xml::dom::parser< char >& p,::xml_schema::flags f)

what does this do???what can i give the input to this...i didnt
understand...

i tried this...

xsd::cxx::xml::dom::auto_ptr<DOMLSParser> parser (impl->createLSParser
(DOMImplementationLS::MODE_SYNCHRONOUS, 0));

myclass.parse(parser,????); what should be these values...

I just want to fill in teh values and make an XML which can be validated
with the schema...

Please point me the right direction or just give me what i have to
do..please it is the need of the hour...

thanks,



More information about the xsd-users mailing list