added writing xml file in example project