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:
{
d.save(out, 0);
return true;
}
bool DLG_GerarEnviarNFe::saveFile(QIODevice *device, QDomDocument &d)
{
QTextStream out(device);
d.save(out, 0);
return true;
}
To copy to clipboard, switch view to plain text mode
Thanks,
Marcelo E. Geyer
Bookmarks