class created by XSD from XML

bduchesne

New member
Joined
Dec 23, 2009
Messages
1
Programming Experience
3-5
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", "2.0.50727.42"), _
System.SerializableAttribute(), _
System.Diagnostics.DebuggerStepThroughAttribute(), _
System.ComponentModel.DesignerCategoryAttribute("code"), _
System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=True, [Namespace]:="http://www.some.org"), _
System.Xml.Serialization.XmlRootAttribute([Namespace]:="http://www.some.org", IsNullable:=False)> _
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
 
Back
Top