1) Melt the butter in a 30cm ovenproof saute pan, add the shallots and sugar, and toss to coat. Cook over medium heat for 10 minutes, tossing occasionally, until the shallots start to brown. Add the vinegar, salt, and pepper and toss well.
2) Place the saute pan in the oven and roast for 15 to 30 minutes, depending on the size of the shallots, until they are tender. Season to taste, sprinkle with parsley, and serve hot.