all groups > dotnet xml > september 2005 >
You're in the

dotnet xml

group:

xml schemalocation



xml schemalocation Lance Johnson
9/6/2005 5:16:44 PM
dotnet xml: I'm trying to generate a schemalocation entry on my root node when using the
xmlserializer.serialize method. I have been unable to achieve this. Is
there a certain attribute I need to be applying to my root node class for
that to appear? Any help is appreciated.

Lance Johnson

Re: xml schemalocation Zafar Abbas
9/7/2005 1:01:12 PM
How about:

public class Test

{

[XmlAttribute("schemalocation")]

public string Location;

}

[quoted text, click to view]

AddThis Social Bookmark Button