Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. parsing binary xml with Qt
QtWS25 Last Chance

parsing binary xml with Qt

Scheduled Pinned Locked Moved Solved General and Desktop
xml parsingqxmlstreamreadebinary format
11 Posts 2 Posters 4.3k Views
  • 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.
  • A Offline
    A Offline
    ainu
    wrote on last edited by
    #1

    Hi, I am trying to implement binary XML parser. At 1st i tried to use QXmlStreamReader class for this but didn't succeed ( probably due to the lack of experience ) so i looked through the Internet for an example and there are of course number of 3d party libs but i am interested in writing this parser exclusively with Qt ( if it is possible of course ). At the end I found that there was a very interesting class ( QWbXmlReader ) in qtopia plugin for Qt 4.* ( which is not part of the current qt ( v 5.9 ), as it seems ) and so i wanted to ask for an advice, which class is better to use for writing this type of parser or maybe there is something similar to QWbXmlReader class from qtopia plugin?

    Thanks in advance.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      What type of binary XML ?
      Do you mean the very old
      "Binary XML Content Format Specification" ?
      a so called WBXML file ?

      Often used with the sync frame work on windows/ mobile stuff ?

      If you look around you might find some libs you can use
      https://github.com/libwbxml/libwbxml

      I think it would be possible to write a brand new lib from scratch using
      Qt alone but its a pretty big spec...
      http://www.openmobilealliance.org/tech/affiliates/wap/wap-192-wbxml-20010725-a.pdf

      1 Reply Last reply
      2
      • A Offline
        A Offline
        ainu
        wrote on last edited by
        #3

        Hi mrjj, thank you for your reply, actually i also looked through the very same src on github while i was thinking about 3rd lib party. As for requirements for the lib they are a bit specific as the binary standard was build in the organisation i am working on. well i just thought if it is possible to use something from qt itself.

        mrjjM 1 Reply Last reply
        1
        • A ainu

          Hi mrjj, thank you for your reply, actually i also looked through the very same src on github while i was thinking about 3rd lib party. As for requirements for the lib they are a bit specific as the binary standard was build in the organisation i am working on. well i just thought if it is possible to use something from qt itself.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          @ainu
          hi
          Well Qt has XML parser but its not for anything binary as far as i know.
          Dont the organisation have a parser then ?

          A 1 Reply Last reply
          0
          • mrjjM mrjj

            @ainu
            hi
            Well Qt has XML parser but its not for anything binary as far as i know.
            Dont the organisation have a parser then ?

            A Offline
            A Offline
            ainu
            wrote on last edited by
            #5

            @mrjj regretfully not, they don't. It is my current task to implement it.
            Thank you for your help.

            mrjjM 1 Reply Last reply
            0
            • A ainu

              @mrjj regretfully not, they don't. It is my current task to implement it.
              Thank you for your help.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @ainu
              Oh so its not strictly WBXML but something close?

              A 1 Reply Last reply
              0
              • mrjjM mrjj

                @ainu
                Oh so its not strictly WBXML but something close?

                A Offline
                A Offline
                ainu
                wrote on last edited by
                #7

                @mrjj yeah, i thought that qt class QWbXmlReader would be the closest to mine and so i checked WBXML also ( well actually at first i checked WBXML as i read wikipedia at first to find at least basic information on binary representation of XML ) but truly speaking even despite that i understand that each lib has its own implementation ( and its prons and cons ) my choice of the lib was mostly based on its documentation i.e. if it has good manual or not. I am really very new to this topic ((
                Another good library ( as it seems, for me ) can be EXI as it has really good description
                What do you think? Have you ever tried it?

                mrjjM 1 Reply Last reply
                0
                • A ainu

                  @mrjj yeah, i thought that qt class QWbXmlReader would be the closest to mine and so i checked WBXML also ( well actually at first i checked WBXML as i read wikipedia at first to find at least basic information on binary representation of XML ) but truly speaking even despite that i understand that each lib has its own implementation ( and its prons and cons ) my choice of the lib was mostly based on its documentation i.e. if it has good manual or not. I am really very new to this topic ((
                  Another good library ( as it seems, for me ) can be EXI as it has really good description
                  What do you think? Have you ever tried it?

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @ainu

                  Hi
                  Nope I have not used EXI but since its seems vastly newer ( last changed 2016-11-02)
                  i would go with that. Adding that documentation seems really good, it would surely try
                  a few tests with it to see if could be used. Also if possible to contain the internal format into
                  XMPP structure, it would be added benefit of interoperability and following a standard.

                  So yes. seems like a good idea if it fits the specs.

                  A 1 Reply Last reply
                  1
                  • mrjjM mrjj

                    @ainu

                    Hi
                    Nope I have not used EXI but since its seems vastly newer ( last changed 2016-11-02)
                    i would go with that. Adding that documentation seems really good, it would surely try
                    a few tests with it to see if could be used. Also if possible to contain the internal format into
                    XMPP structure, it would be added benefit of interoperability and following a standard.

                    So yes. seems like a good idea if it fits the specs.

                    A Offline
                    A Offline
                    ainu
                    wrote on last edited by
                    #9

                    @mrjj thank you for your reply. I will give it a try.

                    mrjjM 1 Reply Last reply
                    1
                    • A ainu

                      @mrjj thank you for your reply. I will give it a try.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @ainu

                      Happy programming and good luck

                      A 1 Reply Last reply
                      1
                      • mrjjM mrjj

                        @ainu

                        Happy programming and good luck

                        A Offline
                        A Offline
                        ainu
                        wrote on last edited by
                        #11

                        @mrjj thank you)

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved