[code pruning] is anyone using the HTXMLStructured stream?

Hello,

I found that the HTXML.c module (the expat wrapper) has two streams (streams
in the libwww sense):

  HTXML: This is a generic wrapper stream to expat.

  HTXMLStructured : This is a "filtering" stream on top of expat. It uses
   a DTD and ignores any element and attribute that's not declared in the DTD.
   This stream looks older and less maintained than the HTXML one.

I've been having problems for compiling the HTXML.c module because the
HTXMLStructured stream makes call to the SGML.c module. This means we need
to compile both the libwwwxml and libwwwhtml minilibs to be able to parse
an XML document. A bit of overhead if we are not using anything else from
libwwwhtml. I suspect that the HTML.c module was used as a base for
creating the HTXML.c module and that's how this stream came to be.

I'd like to know if someone is using the HTXMLStructured stream. None of
the libwww standard applications are using it.

If this bit of code isn't used, I'd like to remove it from libwww, as it
doesn't seem to be as up to date as the HTXML stream.

If someone is using it, I'd like to separate it to another module, HTSXML.c,
so that we can avoid compiling libwwwhtml for nothing.

As a first step, and in order to incite answers, I'm going to surround
the HTSXML.c code with #ifdef 0. Then, if no one complains before the
next release, I'll remove it definitely from the code base.

Hope this makes sense and doesn't seem too arrogant an action.

-Jose

Received on Tuesday, 29 August 2000 11:20:49 UTC