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: "Fulvio Risso" <fulvio.risso@xxxxxxxxx>
Date: Fri, 5 Dec 2003 09:29:39 +0100
Hi.

> -----Original Message-----
> From: ethereal-dev-bounces@xxxxxxxxxxxx
> [mailto:ethereal-dev-bounces@xxxxxxxxxxxx]On Behalf Of Richard Urwin
> Sent: venerdì 5 dicembre 2003 1.16
> To: Gilbert Ramirez; Ethereal Development
> Subject: Re: [Ethereal-dev] Print as XML - Status of work?
> 
> 
> On Thursday 04 Dec 2003 10:06 pm, Gilbert Ramirez wrote:
> >  Attached is a sample PDML file from tethereal.
> 
> I would have thought the <proto> tags should nest. If they dont, 
> isn't there 
> an ambiguity between:
> 
>    <proto>
>    </proto>
>    <proto>
>   </proto>
> 
> and
> 
>    <proto>
>       <proto>
>       </proto>
>    </proto>

In my view, only the first syntax sould be allowed.
For instance, in real world protocols are nested (Ethernet includes IP that includes TCP...).
However, when you display such a packet on the screen, you should display it as:

    ethernet
       field1
       field2
       ....
    IP
       field1
       ....

So, it is much easier not to have nested <proto> tags, since this is not what you want in the output.
This is how PDML has been defined so far.
Just my idea, obviously.

Cheers,

	fulvio