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: Fri, 05 Dec 2003 01:45:41 -0000
On Thu, 2003-12-04 at 18:16, Richard Urwin wrote:
> 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>
> 
> That may indicate a different packet structure in some cases, and make it 
> harder to parse in others.
> 

The former is how Ethereal represents the structure internally... a list
of protocols, not a hierarchy of protocols. It's the same in the GUI.

And that's how it's represented in the PDML specification too:

http://analyzer.polito.it/30alpha/docs/dissectors/PDMLSpec.htm

--gilbert