Why not just load it in as a DOM (e.g. using XmlDocument
or XDocument
) and extract the data yourself? Assuming it wasn't saved with XmlSerializer
, there's no point in trying to deserialize it that way.
EDIT: It would help if you'd give us some background here. If this isn't a valid XmlSerializer output, what is it? Was it originally a valid file, but something has stripped out the namespaces? If so, what else has it done?
You may well be able to get away with just reapplying the namespace everywhere yourself (to every element) although that may be annoying do. Currently we can't really tell though.