Reading an XML file in multiple classes

Posted by rajarsn-7627 under Design Pattern & Practices on 10/6/2012 | Points: 10 | Views : 1427 | Status : [Member] | Replies : 1
I have a big xml file which I need to read in multiple classes, say 9 or 10 classes. What's the best way to achieve this? I can create a common class , create an object, read that class from all other classes. But that consumes more more memory since I have to create the object 10 times. So is there any best way which I can implement this?


Posted by: Laurenrodriguez on: 10/6/2012 [Member] Starter | Points: 25

I think you should consider having two instances of XMLParser, one for each XML file you want to read. It allows you to read as many XML files concurrently without affecting each other. It is also more modular.

rajarsn-7627, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response