void fromXmlFile(String FileName,
|Argument - filename||The name of the XML file to load|
|Argument - context||The XmlSerializationContext object controls the way in which XML is serialized/de-serialized. Its main role is to control the way in which validation is performed and which namespaces are output.
If this is not specified, the a default (XmlSerializationContext::Default global static) instance of the class is used. If you are using several libraries generated from different schemas, or you want to change the way validation is performed for during the lifetime of the application or you are writing multithreaded code, then you should consider creating your own instance(s) of the XmlSerializationContext.
If you are writing a multithreaded app it is highly recommended that you use a different instance of this class on each thread, as access to the static instance is not synchronized. Although read only operations to the static instance (XmlSerializationContext::Default) of the class are thread safe, if the global instance XmlSerializationContext::Default is modified, then this could potentially cause threading problems.
|Description||Reads XML from a file into the current object|
This method will only load XML that complies with the XSD schema.
The root element in the XML held within lpszXMLIn must correspond to the class which this method is being called on. So you have a simple schema.
Also See Multi-Language Support