I have an XML which i am using as a source for initializing a class in my project.
During the course of execution of the project I am creating instances of this class and making use of them. However I have one module where we can edit the contents of that source XML and save it. So after the saving of the XML, I am looking to reset the instances of the class which were created before and initialize them again with the new data from the XML.
This sounds like a basic question, but i am unable to figure out on how to reset instances of a class and initialize them again. Would be great if I can get some help on this.