[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu-devel
Subject:    Re: [kde-edu-devel] Data files for KVocTrain
From:       Ewald Arnold <kvoctrain () ewald-arnold ! de>
Date:       2002-04-19 10:45:32
[Download RAW message or body]

Hello Scott,

unfortunately I forgot to mention that your writer class in xmlwriter.cpp also 
needs a change to make kvoc accept your files.

Uncomment your output statements for the header lines and set DOCTYPE and 
SYSTEM to uppercase like this:

XMLWriter::XMLWriter(QFile *output)
{
  outputFile = output;
  if(outputFile->open(IO_WriteOnly))
    {
      outputStream.setDevice(outputFile);
      outputStream.setEncoding(QTextStream::UnicodeUTF8);
      
      outputStream << "<?xml version=\"1.0\"?>" << endl;
      outputStream << "<!DOCTYPE kvtml SYSTEM \"kvoctrain.dtd\">" << endl;
      outputStream << "<kvtml>" << endl;
    }  
}

cheers
Ewald

-- 
Ewald Arnold, Germany
http://www.ewald-arnold.de/
mailto:ewald at ewald-arnold.de
mobil/sms:+49-162-8001240

_______________________________________________
kde-edu-devel mailing list
kde-edu-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-edu-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic