Error: required attribute "type" not specified