Re: [taskjuggler] XML Report Version 2

From: Joachim Werner (joe_at_suse.de)
Date: Tue Nov 09 2004 - 13:55:23 CET


Message-ID: <4190BE3B.7040302@suse.de>
Date: Tue, 09 Nov 2004 13:55:23 +0100
From: Joachim Werner <joe@suse.de>
Subject: Re: [taskjuggler] XML Report Version 2

Max Hofer schrieb:
> goal: some data provided by taskjuggler (i.e. data associated with leaf-tasks
> - the ones with the effort attribute) should be imported to a database.
>
> i thought the best way to do this, is reading the XML generated file from
> taskjuggler (current stable version 2.0.1). i'm not sure in which language i
> will write the tool, but probably i will implement it in perl or java.
>
> i tried to make a simple project file which creates an XML report. the
> taskjuggler documentation says we should use version 2 to generate the XML
> files.
>
> the default XML-report (version 1) produces a human readable XML output. put
> the version 2 XML-report are not human-readable (i.e. show only garbage).
>
> i'm not an XML expert, and i have no clue about XML version 2, but i always
> thought one of the advantages which XML has is producing human readable data.
>
> with which tools - except konqueror-plugin - can i read those XML version 2
> files?

XML version 2 files are just GZIPped XML files. This is a quite common
approach to keep XML files small. OpenOffice.org or KOffice use a
similar approach.

On my Linux desktop "less" will show me the XML file in a human-readable
form.

gzip -c -d -S .tjx AccountingSoftware.tjx > AccountingSoftware.xml

will take the XML Version 2 file AccountingSoftware.tjx and uncompress
it to AccountingSoftware.xml.

There are GZIP libraries for most languages, so it shouldn't be a
problem to uncompress/recompress the XML files from, let's say, Perl or
Python.

Cheers

Joachim

-- 
Joachim Werner
SUSE RD-TPM
-- 
To unsubscribe, email the address listed in the List-Unsubscribe header
For additional commands, email: taskjuggler-help@suse.com


This archive was generated by hypermail 2.1.7 : Tue Nov 09 2004 - 14:02:46 CET