Results 1 to 2 of 2

Thread: QDomDocument and Namespace support?

  1. #1
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QDomDocument and Namespace support?

    Hi all ...

    Why QDomDocument not read Namespace ?
    f( root.tagName() != "cms:wget" ) stop here...

    <<<<<
    QDomDocument doc("http://www.pulitzer.ch/2005/PuliCMS/1.0");
    if (!doc.setContent(&xmlfile,true, &errorStr, &errorLine, &errorColumn)) {
    QMessageBox::warning( this, tr( "Database Error! & XML Error!" ),
    tr("Parse error at line %1, column %2:\n%3" )
    .arg(errorLine)
    .arg(errorColumn)
    .arg(errorStr) );
    xmlfile.close();
    return 0;
    }

    <<<<< no error ....




    <?xml version="1.0" encoding="UTF-8"?>
    <cms:wget xmlns:cms="http://www.pulitzer.ch/2005/PuliCMS/1.0">
    <requestfile sqlurl="http://ppk.ciz.ch/format/sql/php5_export.sql" localname="citta.sql" />
    <requestfile sqlurl="http://ppk.ciz.ch/format/sql/qt_export.sql" localname="qtcitta.sql" />
    <requestfile sqlurl="http://ppk.ciz.ch/format/sql/citta_svizzere.sql" localname="sxcitta.sql" />
    </cms:wget>

    full code http://ciz.ch/svnciz/forms_shop/forms_shop/db_setup.cpp
    function int DB_Setup:ownload_File( int next )

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QDomDocument and Namespace support?

    Maybe because you didn't declare the namespace?

    http://doc.trolltech.com/4.1/qtxml.h...-to-namespaces

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.