Renamed i18n variable
Changed message when file has unsupported structural elements
Change if to switch when processing node