[Qt-interest] Qt5 and XML DOM

Thiago Macieira thiago at kde.org
Wed May 11 17:51:01 CEST 2011


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.
> 
> What's wrong with QDom? Why anybody should hate it?

They're slow and memory-intensive. They don't deal with incomplete XML data. 
Their behaviour is undefined with malformed XML: there's no error reporting. 
And the namespace support may be incomplete.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110511/a9ec5f64/attachment.bin 


More information about the Qt-interest-old mailing list