Hi all,
I'm getting really confused how to solve this.
I've got this class generated from XSD with xsd (from visual studio
2005)
namespace gpx {
using System.Xml.Serialization;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xs d",
"2.0.50727.42")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("c ode")]
[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://www.topografix.com/GPX/1/1")]
[System.Xml.Serialization.XmlRootAttribute("gpx",
Namespace="http://www.topografix.com/GPX/1/1", IsNullable=false)]
.... etc etc etc...
I'd like to see in the output an attribute of the root element
xsi:schemaLocation="http://www.topografix.com/GPX/1/1
http://www.topografix.com/GPX/1/1/gpx.xsd"
What do i have to modify in the generated class so that the
schemaLocation attribute appears in the generated XML file?
Thanks,
Harmen