Quote Originally Posted by mickey
hello is produced by calling Class.Write (see previous post). I'd like to put hello (what the write() do) in the place of 'HI'
OK, so first you must capture the output generated by Class.Write.

Something like:
Qt Code:
  1. QString text;
  2. Class.Write( QTextStream( &text, IO_WriteOnly ) );
To copy to clipboard, switch view to plain text mode 
should be enough.

And then:
Qt Code:
  1. QDomElement tag1( doc.createElement( "PLAIN Property" ) );
  2. ...
  3. QDomText t1( doc.createTextNode( text ) );
  4. tag1.appendChild( t1 );
To copy to clipboard, switch view to plain text mode 

PS. AFAIK "PLAIN Property" is not a valid name of an element in XML.