VB.NET class from XML

system.serializableAttribute , XML , XSD Richmond, United States
  • 11 years ago

    I have a VB.NET class generated by XSD.EXE however, XSD apparently does not support the SchemaLocation attribute and I need to know how to add this to my VB Class code.

    I have the following code at the beginning of my class

    <system.codedom.compiler.generatedcodeattribute("xsd",> _ Partial Public Class MyDataSet

    What attribute do i need to add to have the SchemaLocation show up in the resulting XML file.

    For example, I need to get the following inserted into my XML attributes since the main XSD is online at the URL given in the sample line below.

    xsi:schemaLocation='http://www.someorg http://www.some.org/media/XSD/MyXSDFile.xsd'

    I have scoured the web for answers without luck. Can anyone help me out here. Please reply directly to my email if you can. bduchesne AT verizon DOT net

    TIA and Happy Holidays Bryan

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“If debugging is the process of removing software bugs, then programming must be the process of putting them in.” - Edsger Dijkstra