471,065 Members | 1,307 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,065 software developers and data experts.

How to add xsi:schemaLocation to serialized c# class

Hi all,

I'm getting really confused how to solve this.

I've got this class generated from XSD with xsd (from visual studio

namespace gpx {
using System.Xml.Serialization;

/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xs d",
[System.ComponentModel.DesignerCategoryAttribute("c ode")]

[System.Xml.Serialization.XmlTypeAttribute(Namespac e="http://www.topografix.com/GPX/1/1")]
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

What do i have to modify in the generated class so that the
schemaLocation attribute appears in the generated XML file?


Jan 18 '07 #1
0 5911

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Sarah Tegtmeier | last post: by
reply views Thread by Ron James | last post: by
reply views Thread by kolja2003 | last post: by
2 posts views Thread by grochmal | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.