[Qt-interest] Generate XML.

David Boddie david.boddie at nokia.com
Wed Mar 18 14:29:10 CET 2009


Shabd Swarup V wrote:

> What is the fastest way to generate XML? I am trying to use
> QXmlStreamWriter but it seems I MUST inherit from QXmlStreamWriter to be
> able to do this.

No, this is incorrect. There may be an example which does this, but only
because it made sense to try and encapsulate higher level writing
operations.

> I would like to avoid this requirement. Is there another way to generate
> XML without having to subclass any special class.

Yes, just construct a QXmlStreamWriter object and call its functions. It's
as simple as that.

David
-- 
David Boddie
Senior Technical Writer
Nokia, Qt Software



More information about the Qt-interest-old mailing list