Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User GTO_India's Avatar
    Join Date
    Nov 2010
    Posts
    866
    I am working on live streaming application based on Qt widget, qml and mediaplayer.cpp etc.

    I want to parse all the channel images and names from the xml document i.e xml .aspx.


    How to implement parsing in the Qt application?

    My application is a Live TV/ streaming application.

  2. #2
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,836
    XMLListModel may be helpful, It can parse the xml store on some webpage for e.g., see this for more:

    http://doc.qt.nokia.com/4.7-snapshot...listmodel.html

  3. #3
    Registered User jetrix74's Avatar
    Join Date
    Oct 2010
    Posts
    256
    Have you looked at the "QtXml Module"? At least the descriptions seems to match to what you need; "The QtXml module provides a stream reader and writer for XML documents".

    I use the QDomDocument,QDomNode and QDomElement for parsing various attributes from a svg file.

    QDomNode n = node->firstChild();
    while(!n.isNull())
    {

    QDomElement e = n.toElement(); // try to convert the node to an element.
    if(!e.isNull())
    {
    if(e.attribute("id") == "TheChildImLookingFor")
    {
    QVariant x1,y1;
    x1 = e.attribute("x","0");
    y1 = e.attribute("y","0");
    }
    }
    }

Similar Threads

  1. Parsing .xml file
    By ondrej.silhavy in forum Symbian Web Runtime
    Replies: 1
    Last Post: 2010-11-18, 03:00
  2. file parsing
    By cruser11232 in forum Symbian C++
    Replies: 6
    Last Post: 2009-10-13, 21:23
  3. file parsing
    By cruser11232 in forum Symbian C++
    Replies: 7
    Last Post: 2009-10-13, 05:42
  4. xml Parsing file
    By hairavi in forum Symbian C++
    Replies: 3
    Last Post: 2003-12-15, 14:26
  5. Parsing a File
    By ajsanchez in forum Symbian C++
    Replies: 3
    Last Post: 2003-12-11, 16:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved