Restructure XML sources for better maintainability
Added table code as separate files