parse_namespace() parses one namespace at a time