[xsd-users] RE: Problem during compilation of generated files

De, Pradipta pde at seic.com
Mon Oct 17 12:48:51 EDT 2005


Hi Boris,
I go through the document and found that it may be very handy.

But, when try to generate the code like the following way:

C:\Documents and
Settings\pde\Desktop\useful\codes\xsd-1.4.0-i686-windows\bin>xsd
--generate-serialization xxxx_Online_Input.xsd

It is thorowing me the following error:

C:\Documents and
Settings\pde\Desktop\useful\codes\xsd-1.4.0-i686-windows\bin>xsd
--generate-serialization xxxx_Online_Input.xsd

I think that is the way we ask me to generate the code.

Is it the correct way to do it?

Thanks and Regards,
Pradipta De 

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Monday, October 17, 2005 11:43 AM
To: De, Pradipta
Cc: xsd-users at codesynthesis.com
Subject: Re: Problem during compilation of generated files

Pradipta,

De, Pradipta <pde at seic.com> writes:

> 	I don't know whether I am missing something, but is there a way
> to do the reverse of what you are doing right now? (XML -> Class) what
> about (Class -> XML?), have you provided any API for the same?

Sure, we call it serialization (as opposed to parsing). You can look at
examples/cxx/tree/library for the code sample and at the "C++/Tree
Serialization Guide" for documentation:

http://codesynthesis.com/projects/xsd/documentation/cxx/tree/serializati
on

Also note that the serialization code is optional and you will need to
specify --generate-serialization when invoking xsd.

hth,
-boris





More information about the xsd-users mailing list