added some preliminary dom code
path to parent obtained
added code to generate xpaths for nodes