Added XML sanity extensions2