PDA

View Full Version : Remove line breaks in QDomDocument



estanisgeyer
17th December 2010, 12:39
Hi,

I'm creating an xml and I need this QDomDocument xml does not contain line breaks and indentation. There's how to do this without reading the xml file, remove the line breaks and save it? How can I do?
To save a file in the xml I'm using the following function, since it allows you to remove the indentation:



bool DLG_GerarEnviarNFe::saveFile(QIODevice *device, QDomDocument &d)
{
QTextStream out(device);
d.save(out, 0);
return true;
}


Thanks,

Marcelo E. Geyer