Thanks for your help. In your example you have defined schema of your xml file. My problem is I am getting xml schema from document and then trying to update this form. I am not able to set value of field with a string value properly because I am not able to address it properly.