I have an other question about "valid XML":
is it possible to create a header line
<?xml version=\"1.0\" encoding=\"iso8859-1\" ?>"
by some calls of whatever or do I have to set them with

Qt Code:
  1. DomDocumentType doctype = impl.createDocumentType("name", QString::null, QString::null);
  2. QDomDocument doc = impl.createDocument("uri", "name", doctype);
  3. doc.setContent(QString("<?xml version=\"1.0\" encoding=\"iso8859-1\" ?>"));
To copy to clipboard, switch view to plain text mode 

Sorry, this piece of code is from Qt3. Until now I did not face the differences of XML code in Qt4.