×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    1,169

    Cool How to use dynamic parsing for parsing of xml contents in the file xml.aspx

    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
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,957

    Re: How to use dynamic parsing for parsing of xml contents in the file xml.aspx

    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
    Join Date
    Oct 2010
    Posts
    256

    Re: How to use dynamic parsing for parsing of xml contents in the file xml.aspx

    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
    Replies: 1
    Last Post: 2010-11-18, 03:00
  2. file parsing
    By cruser11232 in forum Symbian
    Replies: 6
    Last Post: 2009-10-13, 21:23
  3. file parsing
    By cruser11232 in forum Symbian
    Replies: 7
    Last Post: 2009-10-13, 05:42
  4. xml Parsing file
    By hairavi in forum Symbian
    Replies: 3
    Last Post: 2003-12-15, 14:26
  5. Parsing a File
    By ajsanchez in forum Symbian
    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
  •