Does anyone know if it possible to create an xsd file from an xml document using the Custom Tool option in Visual Studio.
Simply, I want to place an xml document in my project. Assign it a custom tool. This custom tool will generate the xsd file, which in turn utilises Xsd2CodeGenerator to generate the classes from it.
I want to do this because if I had an xml document that looked something like this one day:
<Root>
<Classes>
<Class>
<Property>Some Value</Property>
</Class>
<Classes>
</Root>
But then the next day:
<Root>
<Classes>
<Class>
<Property>Some Value</Property>
<Property2>Some Value</Property2>
</Class>
<Classes>
</Root>
I realise this might look daft, but bear with me. We've got xml files that we get regularly do this, for one reason or another!?
I want it to be able to update the xml file automatically, then have the xml file create an xsd file then have the xsd file create the updated classes...
I've looked at xsd but I guess I would need to assign some kind of parameters to the custom tool to achieve this, which I don't think I can.
Any ideas from you wonderful lot on stackoverflow?