[Qt-interest] Qt5 and XML DOM
Bob Hood
bhood2 at comcast.net
Wed May 11 18:55:14 CEST 2011
On 5/11/2011 9:51 AM, 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.
>>
>> 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.
But it is also incredibly convenient. I use DOM in both Qt and Python, and
the speed with which I can have something up and processing XML is superior to
any other method I've found so far, not to mention its straight-forward nature
compared to more discrete methods of processing.
Just steppin' in to spread the DOM love. :)
More information about the Qt-interest-old
mailing list