Click here to Skip to main content
15,917,702 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi,
I want to create new object based on passed xml schema using c# coding.
Is it possible?
How can we create an object?


Thanks
Saka
Posted

Member 2509982 wrote:
How can we create an object?


By calling it's constructor. If you have the data in XML, you can read the values you need to pass to the constructor.
 
Share this answer
 
You have to a) know the organization/contents of the schema, and b) manually create an object that reflects that schema. At that point, you can deserialize the XML into an instance of object.

EDIT ==========

You could also create a dataset from xml.
 
Share this answer
 
v3
HI,
I want to create a object based on XML Schema definition.
How can we create this dynamic object?

Thanks
Saka
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900