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 send XMLdata to exe file

How to send XMLdata to exe file

Scheduled Pinned Locked Moved XML / XSL
regexxmltutorialquestion
7 Posts 2 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.
  • Y Offline
    Y Offline
    yu yu
    wrote on last edited by
    #1

    Hi all, Do you know how to send XMLdata to exe file ? This preposion is not to create XML data file. This situation is the following. The XML data is send from websever, the browser on client receive it. This browser install a plugin that have a function receiving and sending XML data. When this browser receive it, send it to a exe file. I think 2 pattern. 1. This browser send XML data at the same time, kick a exe file by a plug in. 2. A exe file have already performed. If you have some solutions, please advice me. Best Regards, yu-yu

    E 1 Reply Last reply
    0
    • Y yu yu

      Hi all, Do you know how to send XMLdata to exe file ? This preposion is not to create XML data file. This situation is the following. The XML data is send from websever, the browser on client receive it. This browser install a plugin that have a function receiving and sending XML data. When this browser receive it, send it to a exe file. I think 2 pattern. 1. This browser send XML data at the same time, kick a exe file by a plug in. 2. A exe file have already performed. If you have some solutions, please advice me. Best Regards, yu-yu

      E Offline
      E Offline
      Edbert P
      wrote on last edited by
      #2

      You could register a specific MIME type in the PC (eg. .myFileExt) to be handled by your exe file, then send the XML as filename.myFileExt, and when the user opens the file it will be processed by your exe (The exe will receive the filename as the argument). At least that's what I did with my program. However, I don't know how to register a MIME type programmatically, maybe someone else can help?

      Y 1 Reply Last reply
      0
      • E Edbert P

        You could register a specific MIME type in the PC (eg. .myFileExt) to be handled by your exe file, then send the XML as filename.myFileExt, and when the user opens the file it will be processed by your exe (The exe will receive the filename as the argument). At least that's what I did with my program. However, I don't know how to register a MIME type programmatically, maybe someone else can help?

        Y Offline
        Y Offline
        yu yu
        wrote on last edited by
        #3

        Hi thank you for your advice. About the following "when the user opens the file it will be processed by your exe" When XML is sent, have this situation already processed ? or at the same time exe file received, do exe file process ? thank you in advance for your kindness. best Regards, yu-yu

        E 1 Reply Last reply
        0
        • Y yu yu

          Hi thank you for your advice. About the following "when the user opens the file it will be processed by your exe" When XML is sent, have this situation already processed ? or at the same time exe file received, do exe file process ? thank you in advance for your kindness. best Regards, yu-yu

          E Offline
          E Offline
          Edbert P
          wrote on last edited by
          #4

          I'm not sure what you're asking, so I'll try to explain what I think you're asking :-D. If the MIME has been registered in the user's PC to be handled by your exe, whenever the user opens the xml file (in this case, filename.myExt) then the exe will be activated. Therefore, 1. User downloads xmlData.myExt and saves it to the PC. 2. User opens xmlData.myExt (so it has to be opened by user, either by double-clicking on the file or select Open to activate MyProgram.exe) 3. MyProgram.exe runs, and accepts location of xmlData.myExt 4. MyProgram.exe does whatever it needs with xmlData.myExt I hope that answers your question.

          Y 1 Reply Last reply
          0
          • E Edbert P

            I'm not sure what you're asking, so I'll try to explain what I think you're asking :-D. If the MIME has been registered in the user's PC to be handled by your exe, whenever the user opens the xml file (in this case, filename.myExt) then the exe will be activated. Therefore, 1. User downloads xmlData.myExt and saves it to the PC. 2. User opens xmlData.myExt (so it has to be opened by user, either by double-clicking on the file or select Open to activate MyProgram.exe) 3. MyProgram.exe runs, and accepts location of xmlData.myExt 4. MyProgram.exe does whatever it needs with xmlData.myExt I hope that answers your question.

            Y Offline
            Y Offline
            yu yu
            wrote on last edited by
            #5

            I'm sorry to luck my explaination, thank you. Your precondition is to save xml to the PC. I think about not to save it. The client's browser( already installed plugin) catch it, plugin kick exe file and send it to exe file. To register MIME, in this case, is it possible ? thank you in advance for your kindness best regards, yu-yu

            E 1 Reply Last reply
            0
            • Y yu yu

              I'm sorry to luck my explaination, thank you. Your precondition is to save xml to the PC. I think about not to save it. The client's browser( already installed plugin) catch it, plugin kick exe file and send it to exe file. To register MIME, in this case, is it possible ? thank you in advance for your kindness best regards, yu-yu

              E Offline
              E Offline
              Edbert P
              wrote on last edited by
              #6

              I've spoken to my colleague, he said you can register the MIME to open the file automatically. Under the File Types setting, there is an Advanced button where you can untick the "Confirm open after download". If you want to do it from the registry, he said it corresponds to My Computer\HKEY_CLASSES_ROOT\.myExt and My Computer\HKEY_CLASSES\ROOT\MIME\Database\Content Type

              Y 1 Reply Last reply
              0
              • E Edbert P

                I've spoken to my colleague, he said you can register the MIME to open the file automatically. Under the File Types setting, there is an Advanced button where you can untick the "Confirm open after download". If you want to do it from the registry, he said it corresponds to My Computer\HKEY_CLASSES_ROOT\.myExt and My Computer\HKEY_CLASSES\ROOT\MIME\Database\Content Type

                Y Offline
                Y Offline
                yu yu
                wrote on last edited by
                #7

                thank you. I try it. Best Regards, yu-yu

                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