Adding map to complete html or xml tags