create class with custom attributes from xsd

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi All

I am trying to generate classes from XSD which looks like this

namespace WindowsFormsApplication1.Something.Some
{
public class Address
{

public Address()
{
}


[FormMapper("TextBox2")]

public string StreetAddress { get; set; }
[FormMapper("TextBox3")]
public string UnitNumber { get; set; }
[FormMapper("TextBox4")]
public string City { get; set; }
[FormMapper("TextBox5")]
public string State { get; set; }
[FormMapper("TextBox6")]
public string zip { get; set; }

}
}




How do i represent the FormMapper Attribute in the xsd.

Please Help and thanks
.



Relevant Pages