New parser using hxt. Much cleaner code