Results 1 to 4 of 4

Thread: HTML parser using Qt3

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default HTML parser using Qt3

    Hi,

    Which Qt class can be used to parse HTML string?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: HTML parser using Qt3

    Maybe you could use xml classes to achieve this !

    http://doc.trolltech.com/3.3/xml.html

  3. #3
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: HTML parser using Qt3

    Quote Originally Posted by guilugi View Post
    Maybe you could use xml classes to achieve this !

    http://doc.trolltech.com/3.3/xml.html
    I am afraid not.

    XML requires to have open and close tags. It would fails, for instance, at line break <BR>, or horizontal line <HR>.

    I am trying to find similar library that is used in lynx, usage "lynx -dump http://www.qtcentre.org", but it does not seem to have an easy one. Was trying to extracted from lynx source codes but I gave up due to complexity...

  4. #4
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: HTML parser using Qt3

    I know some people managed to use Xerces in order to parse HTML...seems it can be with Cyberneko (Java)...
    Maybe you can be inspired

Similar Threads

  1. Loading images in html in a QTextBrowser
    By BasicPoke in forum Newbie
    Replies: 1
    Last Post: 6th June 2007, 21:51
  2. Qt4 open src mingw from a PC to another
    By nvictor in forum Installation and Deployment
    Replies: 11
    Last Post: 1st May 2007, 17:41
  3. Parser in Qt.... HELP!
    By deepusrp in forum Newbie
    Replies: 6
    Last Post: 23rd January 2007, 21:18
  4. Need Basic html Browser
    By awalesminfo in forum Newbie
    Replies: 6
    Last Post: 21st March 2006, 17:14
  5. [Qt 4.1]using html in QTextEdit from designer
    By patcito in forum Qt Programming
    Replies: 5
    Last Post: 16th January 2006, 22:36

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.