[Qt-interest] Qt5 and XML DOM
Konrad Rosenbaum
konrad at silmor.de
Wed May 11 18:42:54 CEST 2011
On Wednesday 11 May 2011 17:51:01 Thiago Macieira wrote:
> On Wednesday, 11 de May de 2011 19:18:43 Konstantin Tokarev wrote:
> > 11.05.2011, 18:39, "Jason H" <scorp1us at yahoo.com>:
> > > I need to insist on QDom remaining in Qt5.
> > >
> > > Qt has no replacement for this functionality.
> > >
> > > If I am wrong that there is some other way to comare XML documents not
> > > using QDom, please tell me. If there is a way to create documents from
> > > a nested structure without QDom, please tell me.
> > >
> > > I know everyone loves to hate DOM, but it has its place.
> We're not deleting those classes.
Good to know. I have lots of code that relies on QDom.
> We're not adding features to them either. Do you want to?
Yes, I'd like to.
What kind of features would be accepted? Only those implementing the DOM
standard - or also convenience functions (like a version of elementsByTagName
that is non-recursive)?
> > What's wrong with QDom? Why anybody should hate it?
>
> They're slow and memory-intensive.
Any DOM implementation is inherently relatively slow and quite memory-
intensive. They are still a good choice if you need hierarchical views of
relatively small (up to few MB) files.
> They don't deal with incomplete XML data.
Do you mean <xml:include ...> ? MTOM?
That could be fixed. I suspect it could be fixed with some rather simple
methods.
> Their behaviour is undefined with malformed XML: there's no error
> reporting.
Hmm? It does tell you where the first parser error occurred. This is good
enough for most applications. (Actually, for most of them knowing _that_ there
was an error is already enough.)
> And the namespace support may be incomplete.
I haven't had problems with it yet - it has even gotten better in the last few
years.
Would the summit in Berlin be a good place to chime in for us die-hard lovers
of old and un-sexy features like widgets and DOM?
Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110511/3594f0b2/attachment.bin
More information about the Qt-interest-old
mailing list