[Qt-interest] How to: parse an xml file with tags

Scott Aron Bloom Scott.Bloom at sabgroup.com
Tue Feb 16 22:38:00 CET 2010


-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Thiago Macieira
Sent: Tuesday, February 16, 2010 13:25
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] How to: parse an xml file with tags

Em Terça-feira 16. Fevereiro 2010, às 22.13.38, Josiah Bryan escreveu:
> Ross - Not to add fuel to the fire, but you do realize that Qt is 
> GPL/LGPL and the source is available. Even if Thiago et al doesn't 
> update QDom from here till eternity, you still could take the source 
> for QDom, add it to your own source control repo and update it yourself?
> QDom won't disappear off the face of the planet, it just won't get 
> updated by Trolltech - you could still update it to keep it usable 
> with future Qt versions once Trolltech (in the far future) drops it...
> 
> Just my thoughts... I've had to do this with other open source 
> projects that I relied on, but the maintainers changed direction. So I 
> just grabbed a copy of their source at the point that it worked for me 
> and added it to my repo for use internally, and updated it to work 
> with more recent versions of Qt.

I should also add some more details:

There are no Qt 5 plans. Anything about it is speculation. We don't know when it will happen and what it will contain -- or what will be left out. Will there be a DOM API? No idea.

But my guess is that there won't be.

The interesting thing about the QtXml module in Qt 4 is that it requires very little of the rest of Qt. If Qt 5 doesn't come with DOM support, maybe someone can port QtXml 4 to Qt 5 and maintain it.

That someone may be able to give DOM the love it needs and make it even better. We're not seeing the value in it because we believe XML streaming is more useful and more efficient.
-----------------------
And of course, there is always the hope (that was promised in the Qt 4.0 pre 4.1 days) that the 4.X to 5.X will be nowhere near as painful as the 3->4 transition, so maintaining a branch of the QtXml module to support the file IO and QString interaction should be pretty simple...

Scott




More information about the Qt-interest-old mailing list