From: Carmelo A. <car...@st...> - 2007-09-24 09:04:52
|
Subrata Modak wrote: > On Mon, 2007-09-24 at 09:28 +0200, Carmelo AMOROSO wrote: > >> Subrata Modak wrote: >> >>> On Thu, 2007-09-20 at 08:35 -0400, Mike Melendez wrote: >>> >>> >>> >> Hi All, >> I vote for having simply the output in XML format (plus usual text file >> as already confirmed by Subrata). >> From XML we can do a lot of things... using a XSL stylesheet to show >> result on a web page, >> using a XML transformer (C, java, whatever) to generate other output, >> importing the log easily >> on a spreadsheet and so on. >> >> Regards, >> Carmelo >> > > Thanks Carmelo, > Can you also post a sample XML file that you would expect the Parser to > generate (from the Text file) (say the XML file contains the > highlighting and other features that i mentioned below ) ?? > > --Subrata-- > Hi Subrata, attached you can find a skeleton of an XML document, based on a real log. A usefull section I'd like to add is the <statistics> showing the overall results of the tests. The other sections are essentially a translation of the text into xml tags, removing some other output from /proc/cpuinfo for example. It's just an example. Another suggestion is to define a DTD or better an XML schema to be sure the output is well-formed. Ciao, Carmelo |