Results 1 to 2 of 2

Thread: Retrive values using qt

  1. #1
    Join Date
    Apr 2012
    Location
    Madurai, India
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Retrive values using qt

    Hi,

    How to get the <item id> or <publish node> value from the below text

    <message from="pubsub.esprosnet.com" to="jeyanthi@esprosnet.com" id="1010__jeyanthi@esprosnet.com__T97x0">
    <event xmlns="http://jabber.org/protocol/pubsub#event">
    <items node="1010">
    <item id="KSTO1055887203">
    <alert xmlns="http://www.incident.com/cap/1.0">
    <identifier>KSTO1055887203</identifier>
    <sender>KSTO@NWS.NOAA.GOV</sender>
    <sent>2003-06-17T14:57:00-07:00</sent>
    <status>Actual</status>
    <msgType>Alert</msgType>
    <scope>Public</scope>
    <info>
    <category>Met</category>
    <event>SEVERE THUNDERSTORM</event>
    <urgency>Severe</urgency>
    <certainty>Likely</certainty>
    <eventCode>same=SVR</eventCode>
    <senderName>NATIONAL WEATHER SERVICE SACRAMENTO</senderName>
    <headline>SEVERE THUNDERSTORM WARNING</headline>
    <description>
    AT 254 PM PDT... NATIONAL WEATHER SERVICE DOPPLER RADAR
    INDICATED A SEVERE THUNDERSTORM OVER SOUTH CENTRAL ALPINE
    COUNTY... OR ABOUT 18 MILES SOUTHEAST OF KIRKWOOD...
    MOVING SOUTHWEST AT 5 MPH. HAIL... INTENSE RAIN AND STRONG
    DAMAGING WINDS ARE LIKELY WITH THIS STORM
    </description>
    <instruction>
    TAKE COVER IN A SUBSTANTIAL SHELTER UNTIL THE STORM PASSES
    </instruction>
    <contact>BARUFFALDI/JUSKIE</contact>
    <area>
    <areaDesc>
    EXTREME NORTH CENTRAL TUOLUMNE COUNTY IN CALIFORNIA,
    EXTREME NORTHEASTERN CALAVERAS COUNTY IN CALIFORNIA,
    SOUTHWESTERN ALPINE COUNTY IN CALIFORNIA
    </areaDesc>
    <polygon>
    38.47,-120.14 38.34,-119.95 38.52,-119.74
    38.62,-119.89 38.47,-120.14
    </polygon>
    <geocode>fips6=006109</geocode>
    <geocode>fips6=006109</geocode>
    <geocode>fips6=006103</geocode>
    </area>
    </info>
    </alert>
    </item>
    </items>
    </event>
    <headers xmlns="http://jabber.org/protocol/shim">
    <header name="pubsub#subid">KsTH9R9SKlQkO1fgYpllLv4ED1PeSM eaE2F0sxo3</header>
    </headers>
    </message>
    Last edited by jeyanthinatarajan; 5th July 2012 at 08:13.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Retrive values using qt

    Did you look at the Qt docs first? There is a whole module dedicated to XML manipulation, another dedicated to XML queries, and some other classes outside that.

    Any of QXmlStreamreader, QDomDocument, QXmlSimpleReader, or QXmlQuery might be useful.

Similar Threads

  1. I want to save and retrive a QGraphicsScene
    By c_srikanth1984 in forum Qt Programming
    Replies: 16
    Last Post: 7th January 2014, 14:19
  2. Replies: 11
    Last Post: 21st May 2012, 05:02
  3. How to convert string hex values to its real binary values?
    By AttilaPethe in forum Qt Programming
    Replies: 1
    Last Post: 20th February 2012, 22:47
  4. Replies: 1
    Last Post: 19th March 2009, 09:20
  5. How I can retrive information abt file.
    By safknw in forum General Programming
    Replies: 3
    Last Post: 2nd December 2006, 13:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.