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. C / C++ / MFC
  4. for project

for project

Scheduled Pinned Locked Moved C / C++ / MFC
linuxxmltutorialquestion
5 Posts 5 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.
  • U Offline
    U Offline
    User 12525314
    wrote on last edited by
    #1

    How to generate XML file dynamically using C on Linux platform?

    CPalliniC L D B 4 Replies Last reply
    0
    • U User 12525314

      How to generate XML file dynamically using C on Linux platform?

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      The quick and dirty way it is just matter of printf (and the gcc compiler). e.g.

      #include int main(int argc, char * argv[])
      {
      if (argc != 2) return -1;

      printf("\\n\\n\\n
      

      hello %s, welcome!

      ", argv[1]);
      return 0;
      }

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • U User 12525314

        How to generate XML file dynamically using C on Linux platform?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Not too difficult: linux c xml writer - Google Search[^].

        1 Reply Last reply
        0
        • U User 12525314

          How to generate XML file dynamically using C on Linux platform?

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Which part(s) are you having trouble with: creating a file, writing data to that file, forming XML, etc?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          1 Reply Last reply
          0
          • U User 12525314

            How to generate XML file dynamically using C on Linux platform?

            B Offline
            B Offline
            Bram van Kampen
            wrote on last edited by
            #5

            Hi, Well, you have to write the Content! I have no idea of your compiler environment, but, for starters you need to create or select a folder and a File, where the resulting code will be stored. These files would have a 'htm' or 'html' extension. Most environments I know create the Headers and Footers for a blank Page. You have to write the content of the Page in between. You can inspect your work by opening it in Internet Explorer.

            Bram van Kampen

            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