parse dtd from option