No errors but XML file not loaded

Jan 7, 2014 at 9:26 AM
Edited Jan 7, 2014 at 9:27 AM
I use xsd2Code community edition (Mon Nov 11, 2013) in VS2012 C# project and using this xsd to generate classes: http://schemas.microsoft.com/project/2007/mspdi_pj12.xsd

Then I try to load xml-file exported from MS Project.

I have to set XmlRootAttribute manually to XMLSerializer (EntityBase<T>.Serializer -property):
                XmlRootAttribute xRoot = new XmlRootAttribute();
                xRoot.ElementName = "Project";
                xRoot.IsNullable = true;
                xRoot.Namespace = "http://schemas.microsoft.com/project";
                serializer = new System.Xml.Serialization.XmlSerializer(typeof(T),xRoot);
Without it loading fails. Now I can use LoadFromFile, but nothing is loaded. Project-class object is empty. No exceptions.

GenerateXMLAttributes-setting is set to 'True'