Convert Html to Xml via user defined template