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. Parsing in C/C++

Parsing in C/C++

Scheduled Pinned Locked Moved C / C++ / MFC
linuxc++mobiledatabasexml
5 Posts 4 Posters 1 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 10092834
    wrote on last edited by
    #1

    Hi, I am new in development and I need some help and I'll greatly appreciate your help. We have deployed a kit which is scanning wifi and and bluetooth devices and storing them into the device's local database (device is linux debian) with smartphone's ID and other stuff. My first task is to write a c or c++ program which can parse those received frames and format them according to our own database and then send it in xml format to our own event handler which will eventually send it to our database. Thank you very much in advance looking forward for your response. Kind regards

    U L J 3 Replies Last reply
    0
    • U User 10092834

      Hi, I am new in development and I need some help and I'll greatly appreciate your help. We have deployed a kit which is scanning wifi and and bluetooth devices and storing them into the device's local database (device is linux debian) with smartphone's ID and other stuff. My first task is to write a c or c++ program which can parse those received frames and format them according to our own database and then send it in xml format to our own event handler which will eventually send it to our database. Thank you very much in advance looking forward for your response. Kind regards

      U Offline
      U Offline
      User 10092834
      wrote on last edited by
      #2

      I want to write a code which can parse the received frames from the device to an xml file and send it to our database. I broke that task into pieces and first is to write that proram to parse any file into an xml format but it will be my first time so I don't know how to start or can I use an API for that some samples would be great.

      Thank you in advance.

      D 1 Reply Last reply
      0
      • U User 10092834

        Hi, I am new in development and I need some help and I'll greatly appreciate your help. We have deployed a kit which is scanning wifi and and bluetooth devices and storing them into the device's local database (device is linux debian) with smartphone's ID and other stuff. My first task is to write a c or c++ program which can parse those received frames and format them according to our own database and then send it in xml format to our own event handler which will eventually send it to our database. Thank you very much in advance looking forward for your response. Kind regards

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

        You can use XmlLite[^] to write simple XML data.

        1 Reply Last reply
        0
        • U User 10092834

          I want to write a code which can parse the received frames from the device to an xml file and send it to our database. I broke that task into pieces and first is to write that proram to parse any file into an xml format but it will be my first time so I don't know how to start or can I use an API for that some samples would be great.

          Thank you in advance.

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

          Member 10125032 wrote:

          I broke that task into pieces and first is to write that proram to parse any file...

          Do you have code to read this file? That would be a good starting point. Until you get past this, XML and database stuff are irrelevant.

          "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 10092834

            Hi, I am new in development and I need some help and I'll greatly appreciate your help. We have deployed a kit which is scanning wifi and and bluetooth devices and storing them into the device's local database (device is linux debian) with smartphone's ID and other stuff. My first task is to write a c or c++ program which can parse those received frames and format them according to our own database and then send it in xml format to our own event handler which will eventually send it to our database. Thank you very much in advance looking forward for your response. Kind regards

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            Member 10125032 wrote:

            We have deployed a kit ...My first task is to write a c or c++ program which can parse those received frames and format ... in xml format to our own event handler

            Steps - Get the spec for the 'kit' to determine what it stores. - Read the data. - Parse it according to what you learned from the spec. It is unlikely that any complex solutions would be required for this (hopefully, but the spec is the source.) - The parser will create an internal format (list of structs probably) of your own devising. Probably very close to what you want to put into the xml. - Determine what the xml looks like. Either find out what it already expects. Or design it. If the latter then someone needs to tell you what data they expect. Otherwise you have no idea what you need to get. - Write the internal format out to xml form based on the previous step.

            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