I'm creating an xml file and have an XSD file to work against.

I'm sure I remember reading somewhere that C# can automagically create class objects when given an XSD. So if I have an address element in XML I can have a generated C# class that uses the xsd to create the required properties of the class.

e.g.`<adress><postcode></postcode><phone></phone>`

would map to a class called Address with properties postcode and phone.

Is this sort of thing possible or did I dream it?