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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to represent XML hierarchy as classes

How to represent XML hierarchy as classes

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++xmltutorialquestion
4 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.
  • K Offline
    K Offline
    karthik Tamizhmathi
    wrote on last edited by
    #1

    Hi all, My question is here : To create a console application with the Class Hierarchy for the below XML Structure. Malar SE Prakash PL //****************** I have to write a C++ program to add, modify, delete type application. This application should append, delete, or modify the XML file. I think each tag should be represented as seperate class since we have append the XML as tags Advance thanks for the one who will help to solve the problem, Regards, Karthik M Karthik M

    C L K 3 Replies Last reply
    0
    • K karthik Tamizhmathi

      Hi all, My question is here : To create a console application with the Class Hierarchy for the below XML Structure. Malar SE Prakash PL //****************** I have to write a C++ program to add, modify, delete type application. This application should append, delete, or modify the XML file. I think each tag should be represented as seperate class since we have append the XML as tags Advance thanks for the one who will help to solve the problem, Regards, Karthik M Karthik M

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      karthikoncodeproject wrote:

      I think each tag should be represented as seperate class since we have append the XML as tags

      :~ This is not a good idea: imagine, you want to add a new tag. Then you have to create another class... Not very practical. Take a look at tinyXML[^], it's a quite powerfull library.


      Cédric Moonen Software developer
      Charting control

      1 Reply Last reply
      0
      • K karthik Tamizhmathi

        Hi all, My question is here : To create a console application with the Class Hierarchy for the below XML Structure. Malar SE Prakash PL //****************** I have to write a C++ program to add, modify, delete type application. This application should append, delete, or modify the XML file. I think each tag should be represented as seperate class since we have append the XML as tags Advance thanks for the one who will help to solve the problem, Regards, Karthik M Karthik M

        L Offline
        L Offline
        Laxman Auti
        wrote on last edited by
        #3

        See IXMLDOM* interfaces which provides what you want. Knock out 't' from can't, You can if you think you can :cool:

        1 Reply Last reply
        0
        • K karthik Tamizhmathi

          Hi all, My question is here : To create a console application with the Class Hierarchy for the below XML Structure. Malar SE Prakash PL //****************** I have to write a C++ program to add, modify, delete type application. This application should append, delete, or modify the XML file. I think each tag should be represented as seperate class since we have append the XML as tags Advance thanks for the one who will help to solve the problem, Regards, Karthik M Karthik M

          K Offline
          K Offline
          karthik Tamizhmathi
          wrote on last edited by
          #4

          Thanks for your valid suggestions. But i have to write a C++ code manually for an assignment. Kindly design a class for the above mentioned XML hierarchy. Regards, Karthik M Karthik M

          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