[Qt-interest] Parsing XML page
Jason H
scorp1us at yahoo.com
Tue Mar 29 20:09:04 CEST 2011
Regexp are not for structured data. It is to search for patterns in flat data.
XML is structured data.
Really, the XmlPatterns module or XmlStreamReader is what you want.
----- Original Message ----
From: Николай Шатохин <n.shatokhin at gmail.com>
To: Diego Iastrubni <diegoiast at gmail.com>
Cc: "qt-interest at qt.nokia.com" <qt-interest at qt.nokia.com>
Sent: Tue, March 29, 2011 1:53:16 PM
Subject: Re: [Qt-interest] Parsing XML page
But if I need read HTML page and must get a block of texts...
2011/3/28 Diego Iastrubni <diegoiast at gmail.com>:
>
> On Sat, Mar 26, 2011 at 3:37 AM, Nicholas Shatokhin <n.shatokhin at gmail.com>
> wrote:
>>
>> I downloaded XML page. Now I must parse it and write to table some fields:
>
> ..
>>
>> Now I use QRegExp, but I think exists simplest methods.
>
> ..
> NEVER, EVER, any platform, on any language don't even try to parse XML using
> RegEx. NEVER.
> I am writing this, so Google will also show this answer as well when a
> random Joe will look for XML parsing. Now lets continue with our lives.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list