Xml Namespace Deserialize not expected InvalidOperationException

May 28, 2010 at 4:24 PM

I have fairly simple xml with a namespace declared on the root tag, something like:

<myxml xmlns="http://mydomain.com">
...
</myxml>

When calling the generated deserlization class I receive the following exception:

MyXml.Schema.Tests.TestSchemas.TestMyXmlSchemaDeserialization:System.InvalidOperationException : There is an error in XML document (7, 2).  ----> System.InvalidOperationException : <myxml xmlns="http://mydomain.com">
 was not expected.

Any ideas?

Karl..