QTextCodec::setCodecForTr(QTextCodec::codecForName( "windows-1251")); QTextCodec::setCodecForLocale(QTextCodec::codecForName( "windows-1251"));
QDomNode xmlNode = xmldoc.createProcessingInstruction("xml", "version=\"1.0\" encoding=\"charset-1251\"")
QTextStream( &file ) << xmldoc.toString();
if( file.open( QIODevice::ReadOnly ) ) { xmldoc.setContent( &file ); file.close(); }
QString objname = interface.attribute( "objname" );
QDomElement interface = node.toElement();