Hi Rob,
If you post your schema, xml, and code snippet, it might be easier for us to
help you. From what you've posted, it looks like you are declaring a
namespace to be used in your Xml file, but never use it. Your <dataroot>
element is in no namespace and no schema is provided for it. officedata
namespace is declared (xmlns:od="urn:schemas-microsoft-com:officedata"), but
never used.
--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Rob R. Ainscough" <ro*****@pacbell.net> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I'm using XmlSerializer to read the an XML file into an object collection.
As soon as I .Deserialize(myFileStream) I get the above error:
my XML looks like
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata"
generated="2006-06-09T14:07:13">
<Applications>
<ApplicationID>0</ApplicationID>
....
<Applications>
</dataroot>
I take it that .NET 2.0 can not deal with all valid XML syntax?
Rob.