Added parsing options for xml

Add parsing options for xml parsing in order to remove errors while
parsing XHTML