Well you could obviously do it the 'hard' way using reflection.
For a give class simply enumerate the (public) properties, get their types
and write out an xsd based on that.
You may need to make it recursive.
But there MUST be a way ofdoing this in DOTNET already. I just can't find
it!
Iain
"Bert" <no@thanks.com> wrote in message
news:Xn*************************@195.130.132.70...
Thanks for your answer.
I've tried to figure out these classes, but while I'm not shure what they
do, they aren't what I'm looking for. You have to give an XmlSchema in
their constructors, and I want to generate XmlSchemas.
Any other ideas?
Bert.
"Iain" <id********@dircon.co.uk> wrote in
news:uG**************@tk2msftngp13.phx.gbl:
I was convinced I'd seen a reference to xsd using some internal
classes to this (that is it is just a wrapper). But I could not find
it anywhere in MSDN (does not mean it is not there!).
But I found this.
http://weblogs.asp.net/cazzu/archive.../24/33302.aspx
XmlSchemaExporter seems to the key thing here, but I have no idea what
to do with it. Please report back if you work it out!
Iain