Slightly confused by LoadFromFile.... Seems to be omitting data?

Nov 22, 2012 at 3:05 PM
Edited Nov 22, 2012 at 3:17 PM


I am using XSD2Code 3.4, and enjoying its great potential.

I am wanting to deserialize all the data from an XML file that conforms with a Class that has been generated using XSD2CODE.

I seem to only get the markup, no data.

My class is "Document".

My object instantiation of this is "MyDoc".

My XML file with data is MyDoc.XML.

Also MyDoc.XML conforms to Document.XSD, not any generic property based schema.

So how should I import this "MyDoc.XML" into "MyDoc" such that I can then do

MyDoc.SaveToFile("MyDoc2.XML") and "MyDoc2.XML" would be identical to "MyDoc.XML"?


Many thanks in advance for any help,


Nov 22, 2012 at 5:11 PM

Solved: Slight code ignorance issue !!!

            Document myDoc = Document.LoadFromFile("MyDoc.xml");

Hope this helps someone.