I just answered a similar question a few days ago. Just add a field for the
schemaLocation and attach the XmlAttributeAttribute as shown in [0]
--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor
[0]
http://groups.google.com/groups?q=ch...hema+reference
"Alex" <a.*******@verizon.net> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
I use XSDValidation before deserializatoin. It works fine because I have
schemaLocation set in XML file. However, serialization routine overwrites
this root element attribute and XSD validation doesn't work 2nd time
around in this application. So I must have a way of serializing schemaLocation to
the root node.