Prevent users from inserting BROKEN xml into the editor. Invalid is still ok to insert for saving work