Hi
I've been looking around for this for quite some time and cannot seem to get anywhere. I need to find a way to accomplisht the following two tasks, based on a .Net Entity object:
- Create an XML file that contains the data in this entities, complete, with cascading nodes (representing foreign key relationships, basically). I've considered copying the data to a DataSet and then doing a WriteXml() on it, but this seems like an overkill. Entities must have a more direct way. Note, though, that I'm not trying to serialize the object. I just need the data in a simple XML file.
- Related to point 1, I need to also save an XSD representing the schema of this Entity, to go hand in hand with the XML mentioned above. Again, going through a DataSet and then WriteXmlSchema() is an option, but feels like overkill.
Is there anything in the Entity universe that can help do this in a simple way ?
Thx.