My purpose is to read xml file into Dom object, edit the dom object, which involves removing some nodes.
After this is done i wish to restore the Dom to its original state without actually parsing the XML file.
Is there anyway i can clone the dom object i obtained after parsing the xml file for the first time. the idea is to avoid reading and parsing xml all the time, just keep a copy of original dom tree.