Load Xml dynamically and automap the types

zus

New Member
I am working on some test automation where we are using xml documents for some test input.Now I am loading the xml documents to dataset and from dataset I am accessing the data.For easy accessing, I have defined some classes with the similar xml schema.Once I am done with the loading of xml into dataset, creating instances of my defined classes with the data from dataset. And accessing these objects from tests.But here the maitainance of class structure and xml in sync is too difficult. If there is any change in the xml such as adding a new node, I have to change my class structure and the initializing the class to accomdate the new property.I am looking for some methodology where I can avoid the keeping insync of xml and class structure. I am basically looking for some Automapper inbetween the xml and my C# classes.-Naresh
 
Back
Top