I am planning to create a tool which will create an HTML DOM out of this XML file.
So here I will do it in three steps.
Step 1 : Get HTML DOM (which I need to manipulate) serialized to well formatted XML file.
Step 2 : Make changes in XML.
Step 3 : Use the XML to reflect the changes in the HTML DOM.