changed the sample to use some of the xml attributes