Re: Creating new XML file
It can't be causing problems, it's perfectly valid. What exactly are the "problems"?
Re: Creating new XML file
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
Code:
DomDocumentType doctype
= impl.
createDocumentType("name",
QString::null,
QString::null);
QDomDocument doc
= impl.
createDocument("uri",
"name", doctype
);
doc.
setContent(QString("<?xml version=\"1.0\" encoding=\"iso8859-1\" ?>"));
Sorry, this piece of code is from Qt3. Until now I did not face the differences of XML code in Qt4.
Re: Creating new XML file
Quote:
Originally Posted by
auba
<?xml version=\"1.0\" encoding=\"iso8859-1\" ?>"
Code:
doc.appendChild(process);