How to generate an cs. or vb. file from XSD, so it can be called in code?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Im fairly new to schemas, but I have a XSD file which I edited that I would like to update, with new elements, and be able to call those elements under a class within the vb.net code. For example, I like to be able to get or set an account number from
the XML schema to obtain the value of a certain node. Such as
Byval Audit as AuditEntry.Request, where Auditentry is the Namespace and Request is the class
Audit.AcctNumber = 1234
I suppose this can be hardcoded, but I perfer to know the actual method, where I can just edit the XSD, and simple update it to generate a new vb. file.
Im fairly new to this so if anyone could give some basic good instructions on how to do so Id greatly apprieate it. I heard you can use XSD.exe, but Im not sure the proper way to do it??? <hr class="sig .NET noob

View the full article
 
Back
Top