Fixed a bug when generating XML code for materialized views that was
causing these to break DTD rules. (issue #568)