[Qt-interest] Qt5 and XML DOM

Konstantin Tokarev annulen at yandex.ru
Wed May 11 18:47:41 CEST 2011



11.05.2011, 19:51, "Thiago Macieira" <thiago at kde.org>:
> 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.

These properties are common for all DOM-parsers, nevertheless they are very useful
in some applications

> And the namespace support may be incomplete.

This is just a missing feature, not a drawback

-- 
Regards,
Konstantin



More information about the Qt-interest-old mailing list