Reflect XML configuration onto object structures using PHP