XML schema working and throwing reasonable errors.. not compeletely tested though