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. [SOLVED] how to parse character pointer;
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] how to parse character pointer;

Scheduled Pinned Locked Moved General and Desktop
10 Posts 6 Posters 3.3k 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.
  • T Offline
    T Offline
    TobbY
    wrote on last edited by
    #1

    char* GetFeaturedResult;

    qDebug()<<response->GetFeaturedResult;

    prints... this
    @

    • <Root>
    • <Record>
      <Name>Featured</Name>
      <logo>http://10.25.4.49/monsoonstore/Featured/CATALOG_200X217.PNG</logo>
      </Record>
    • <Record>
      <Name>Catalog</Name>
      <logo>http://10.25.4.49/monsoonstore/Featured/FEATURED_200X217.PNG</logo>
      </Record>
    • <Record>
      <Name>Stores</Name>
      <logo>http://10.25.4.49/monsoonstore/Featured/STORES_200X217.PNG</logo>
      </Record>
      </Root>
      @

    pls help me how to parse this object..... thanks

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      Have a look at Qt's xml parsing capabilities e.g. "here":http://doc.qt.nokia.com/4.7/qxmlsimplereader.html

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TobbY
        wrote on last edited by
        #3

        [quote author="loladiro" date="1308646656"]Have a look at Qt's xml parsing capabilities e.g. "here":http://doc.qt.nokia.com/4.7/qxmlsimplereader.html[/quote]

        its no use...

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          Please, clearly state what you want to achieve and give clear questions. Then you might also get clear answers.
          have a look at "smart questions":http://www.catb.org/~esr/faqs/smart-questions.html

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TobbY
            wrote on last edited by
            #5

            basically i dont have xml file in this question, i get xml data from internet in response object, is there any way to parse it???

            thenks

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              It doesn't matter if your data comes from a file or the internet. You can still use the XML parsing classes. What is weird though, are the - signs in your text to parse. Are they actually in your data?

              1 Reply Last reply
              0
              • A Offline
                A Offline
                anselmolsm
                wrote on last edited by
                #7

                TobbY, in the "doc page posted by loladiro":http://doc.qt.nokia.com/4.7/qxmlsimplereader.html:

                [quote]
                If you can't parse the entire input in one go (for example, it is huge, or is being delivered over a network connection), data can be fed to the parser in pieces.
                [/quote]

                and so on...

                Anselmo L. S. Melo (anselmolsm)

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  TobbY
                  wrote on last edited by
                  #8

                  [quote author="Andre" date="1308649061"]It doesn't matter if your data comes from a file or the internet. You can still use the XML parsing classes. What is weird though, are the - signs in your text to parse. Are they actually in your data? [/quote]

                  no they are not in my data, actually i am trying web services, and xml parser need .xml files, and i stuck there

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #9

                    [quote author="TobbY" date="1308650464"]

                    no they are not in my data, actually i am trying web services, and xml parser need .xml files, and i stuck there[/quote]

                    An XML parser need XML data. It does not matter if you read the bytes from a file on the disk or receive them from some network source. Put the received result in a [[Doc:QByteArray]] and feed that data to the XML parser.

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      TobbY
                      wrote on last edited by
                      #10

                      hello everyone i got success.

                      thanks volker and andre , you really helped me.

                      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