PDA

View Full Version : Ignore QXmlSimpleReader startElement



zickedi
23rd July 2012, 17:26
In Expat I have a DefaultHandler which gets complete stream and I can disable specific events.
Is there a way to disable call of "startElement" in QtSaxParser? I want to listen for a tag and when it is found, get all following characters (including tags). This could be achieved by disable start-tags until end-element is found.

Example:
<root>
<element>
<content>sdfs</content>
</element>
</root>

Search-Tag: element
Expected Result:
<element>
<content>sdfs</content>
</element>