Hi Frank, I had a quick look at the XMLWriter class. I am not sure if it is possible or sensible to maintain an XML definition in another format than DTD or Schema without any connection to the source code. The best way would be in my eyes to generate the code from the file format definition, but I am not sure how to accomplish this in an optimal way.
BTW, is there a reason why you are using camel case for most attributes and not for the date* attributes (like startdate, duedate and completiondate)? Regards, Michael. -- Message from Frank Niessink (15.12.2009 23:05) > > > Hi Michael, > > 2009/12/15 Michael Jaeger <[email protected] > <mailto:michael.jaeger%40in-flux.de>>: > > Dear all, > > > > I am thinking about starting a port of Task Coach to Maemo. It seems > > sensible to do a complete new implementation since Python/wxWindows is > > not very well-suited for resource constraint devices like, e.g., the > > Nokia N900. For this project I first need a specification of the XML > > format, Task Coach uses to store data. In the source files I did not > > find a proper document (like a Schema definition). Can you help me in > > this issue, please? > > That would be great. Unfortunately we don't have a separate Schema > definition. You'll have to check the XMLWriter class, see > http://taskcoach.svn.sourceforge.net/viewvc/taskcoach/trunk/taskcoach/taskcoachlib/persistence/xml/writer.py?view=markup > <http://taskcoach.svn.sourceforge.net/viewvc/taskcoach/trunk/taskcoach/taskcoachlib/persistence/xml/writer.py?view=markup> > > It sounds worse than it is, the whole writer class is less than 200 > lines of code. If you have suggestion how to document a Schema without > the need to maintain the Schema definition by hand, I'm all ears! > > Cheers, Frank > >
