Create valid XML from XSD loaded in Runtime (without xsd.exe)

Possible duplicate:

Here's the scenario: I created an application that connects to a commercial CRM product using my web services API, which unfortunately has a different scheme for each installation based on how users create their custom fields. This layout can also be changed at any time. This application will be installed at the client’s location and will have to function even when they change their field structure.

To insert or update a record, I first call their Project.GetSchema () method, which returns an XSD file based on the current set of fields, and then I can call the Project.AddProject () method, passing in the XML file containing the project data.

My question is : What is the best way to generate XML from an XSD file at runtime? I need to check for the presence of fields and fill them out only if they exist (for example, if the client deleted or renamed some fields).

I really don't want the application to try to recompile classes on the fly using xsd.exe. There just has to be a better way.

[] , , , XSD, . , , . , , , xsd: sequence, .

+3
1

, : , XML .NET, , :
XML- XSD .NET

, , :).

0

Source: https://habr.com/ru/post/1730719/


All Articles