[#354] Added xml attribute to set headers as collapsed by default. Also added to sample.