[Qt-interest] How to parse a paragraph twice with an XML stream parser?

Lingfa Yang lingfa at brandeis.edu
Tue May 12 15:38:51 CEST 2009


Hi XML experts or XML application developers,

I am using QXmlStreamReader parsing document.xml. The file can be huge, 
so I prefer this parser better than DOM.

The document.xml contains many paragraphs. With each paragraph I have to 
parse it twice. I wish QXmlStreamReader can remember start element of 
each p (Paragraph) tag. When finish the first time reading, reset to the 
p tag again and read second time.  It seems QXmlStreamReader cannot do 
that.

Have you ever meet the similar dilemma, and what is your 
solution/experience working with a stream parser?

Thanks in advance.
Lingfa




More information about the Qt-interest-old mailing list