Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. How to Save full path of file in XML file like C:\xyz\patient.bmp

How to Save full path of file in XML file like C:\xyz\patient.bmp

Scheduled Pinned Locked Moved XML / XSL
helpdebuggingxmltutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abhijit D Babar
    wrote on last edited by
    #1

    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

    L P 2 Replies Last reply
    0
    • A Abhijit D Babar

      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

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      I cannot reproduce the problem. This likely means it is due to a bug of your own making.

      led mike

      1 Reply Last reply
      0
      • A Abhijit D Babar

        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

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Do you save the XML document?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups