Ethereal-dev: Re: [Ethereal-dev] http xml dissector plugin

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 22 Oct 2003 17:01:43 -0700

On Oct 22, 2003, at 4:39 PM, Adam Doppelt wrote:
I'm not familiar with configure scripts and I'm building on win32. Any
pointers?

Well, there's the autoconf documentation:

	http://www.gnu.org/manual/autoconf-2.53/autoconf.html

 I think gmarkup was added in glib 1.3.2 (see
http://mail.gnome.org/archives/gtk-devel-list/2000-November/ msg00147.html).
Perhaps we can just check for >= the current version?

On UNIX, I don't think there's a strong reason to care about GLib 1.3[.x] - just 1.2[.x] and 2.x. In that case, we could just check for 2.x. I'm not sure what you'd check for that, however.

Also, when does that dissector get called?  I.e., who determines that
the body is XML?

I wrote it as a heuristic dissector within the "http" subdissector list. The dissector checks for "<xml" at the start of the body and returns FALSE if it
doesn't match. Is there a better approach?

That's one way of doing it.

Another way would be to check the Content-Type: value, if present; that would require that we add a string dissector table for Content-Type. That would also mean that only those types registered by the XML dissector would be dissected as XML.