Home  /  Questions  /  Question

55   94.5
May 22, 2012

Serializing entities stored in database using XSD

Hi ,

I need an optimal solution for the following:

1. Objects created by my application are stored in database.
2. I have a number of XSD files.
3. I need to instantiate objects defined in XSD, initialize these with values from the database.
4. Then serialize everything into an XML file.

What I do is to create different objects (XSD contains more than 50 classes), read database and then initialize the object for serialization.

Is there any Pattern available that helps to create and initialize entirely different types of objects (no inheritance involved between classes).

Thanks in advance.