Further bugfixes; XMLReader now checks for processed tags and attributes