How do I run XSD to create C++ code from XML code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ledsan
    New Member
    • Feb 2014
    • 2

    How do I run XSD to create C++ code from XML code

    I already downloaded the XSD for linux, XECERS-C,and EXPAT. I have the XML files and code and want to create a C++ code but I do not know and can not find out how to use the XSD tool in order to create the C++ code. Can any one tell me what do I need to do now.
    Thank you so much
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Hi ledsan and welcome to bytes.com!

    I don't know the context of course but XSD files are schema files rather than runnable code; why are you trying to convert them to C++ code? Also, what do you expect that C++ code to do?

    Comment

    • ledsan
      New Member
      • Feb 2014
      • 2

      #3
      Hi Nepomuk,
      Thank you so much for your reply.
      I am trying to connect to a UPNP device (dish VIP222) and set the channel to a channel I got from a MySQL data base to read the information generated by the UPNP device about that channel and store it into my database.
      I have some XML code that can help me connect to the UPNP device and set the channel but I do not know how to use it on a C++ program which already had the part of reading the channel from the data base and storing the information into the data base.
      Can you help me?
      I have never worked with XSD or any other appliction of that sort. Your help is greatly appreciated it.

      Comment

      • Nepomuk
        Recognized Expert Specialist
        • Aug 2007
        • 3111

        #4
        OK, I don't really know about UPNP devices but I think you have something confused here:

        An XSD file is a so called schema file. This type of file is used to determine how corresponding XML files are supposed to look; so for example it could define what the structure of a configuration file should look like. In your case that may me what your XSD describes; it could also describe the form input or output may have. This may be something you'll have to mirror in your C++ code; it would probably be a struct or even a class. But that's about all I can tell you without knowing more details.
        The best way to handle this is probably to ask the makers of the UPNP device what the communication should look like and whether they know what this XSD file is exactly.

        Comment

        Working...