How to Save full path of file in XML file like C:\xyz\patient.bmp
-
I have 2 text box Controls on form and i have to save the contents entered into this in XML file. When i enter text through keyboad into this two text box, these are saved into XML file. But When i want to save File path( like C:\xyz\patient.bmp ) which is returned by openFileDialogBox control, this path can't be save into XML file. Where is the problem. I have to set any Textbox property or XML can't save this type of format?. then to save this format any Type casting is reqiured in XML? Code is like this XmlNode^ imgnode = doc->CreateNode(XmlNodeType::Element,"imgFile",""); imgnode ->InnerText = txtimageFile->Text; node->AppendChild(imgnode); When I debug it, Imagefile text box contain text like; txtimageFile->Text = “C:\xyz\patient.bmp” this path is not save into XML file. It is not giving any error while saving. If you enter normal text through keyboard ( like patient details), it will save. Then what's the problem.? Please reply
-
I have 2 text box Controls on form and i have to save the contents entered into this in XML file. When i enter text through keyboad into this two text box, these are saved into XML file. But When i want to save File path( like C:\xyz\patient.bmp ) which is returned by openFileDialogBox control, this path can't be save into XML file. Where is the problem. I have to set any Textbox property or XML can't save this type of format?. then to save this format any Type casting is reqiured in XML? Code is like this XmlNode^ imgnode = doc->CreateNode(XmlNodeType::Element,"imgFile",""); imgnode ->InnerText = txtimageFile->Text; node->AppendChild(imgnode); When I debug it, Imagefile text box contain text like; txtimageFile->Text = “C:\xyz\patient.bmp” this path is not save into XML file. It is not giving any error while saving. If you enter normal text through keyboard ( like patient details), it will save. Then what's the problem.? Please reply
-
I have 2 text box Controls on form and i have to save the contents entered into this in XML file. When i enter text through keyboad into this two text box, these are saved into XML file. But When i want to save File path( like C:\xyz\patient.bmp ) which is returned by openFileDialogBox control, this path can't be save into XML file. Where is the problem. I have to set any Textbox property or XML can't save this type of format?. then to save this format any Type casting is reqiured in XML? Code is like this XmlNode^ imgnode = doc->CreateNode(XmlNodeType::Element,"imgFile",""); imgnode ->InnerText = txtimageFile->Text; node->AppendChild(imgnode); When I debug it, Imagefile text box contain text like; txtimageFile->Text = “C:\xyz\patient.bmp” this path is not save into XML file. It is not giving any error while saving. If you enter normal text through keyboard ( like patient details), it will save. Then what's the problem.? Please reply
Do you save the XML document?