Ethereal-dev: Re: [Ethereal-dev] Print as XML - Status of work?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Gilbert Ramirez <gram@xxxxxxxxxxxxxxx>
Date: Mon, 08 Dec 2003 22:58:00 -0000
On Mon, 2003-12-08 at 16:42, Guy Harris wrote:
> 
> On Dec 5, 2003, at 10:12 PM, Gilbert Ramirez wrote:
> 
> > I've committed the change to CVS. Update and read the
> > doc/README.xml-output file for more information.
> 
> Should the mapping from Ethereal-specific names to generic PDML names 
> (e.g. "frame.number" -> "geninfo.num") be done by adding an additional 
> field to the "header_field_info" structure after "blurb" - if it's 
> null, use the Ethereal name, otherwise use that name?  That might be 
> cleaner than wiring knowledge of particular fields into the 
> output-as-XML code.

It's only done for four fields, so it would seem wasteful to me to make
the other 14,954 fields pay the price for that. (the price being
memory.. 4 bytes to encode a NULL )

> 
> That'd require either
> 
> 	1) two versions of HFILL, one for fields with both types of name and 
> one for fields without both types of name
> 
> or
> 
> 	2) a huge amount of editing.
> 
> 

--gilbert