Adding function Jxml.removeIllFormedElements