Fixed an issue that was causing the XML validation to fail when entities were used.
Fixed more XML validation issues. Updated the table validation to include line numbers.