Re: Parsing of comments in LWP
Earl Hood (ehood@isogen.com)
Tue, 14 May 1996 13:16:26 -0500
> I also played with something like this last night. I am still
> thinking about how this could be made into a parser. I made a simple
> script that turns the HTML 3.2 DTD into a perl data structure. The
> script is included below. Eveything is still very experimental.
Instead of reinventing the wheel on parsing DTD's, see dtd.pl at
<http://www.oac.uci.edu/indiv/ehood/perlSGML.html>. It is quite robust
and has been developed to handle SGML features like marked sections and
public/system identifier resolution via catalogs.
The library is in Perl 4 (since initial development started 2.5 years
ago), but it works under Perl 5. Check the documentation on how to
use it.
--ewh
----
Earl Hood | ISOGEN INTERNATIONAL CORP
ehood@isogen.com | dba Highland Consulting
Phone: (214) 233-8393 | 4455 LBJ Freeway, Suite 804
FAX: (214) 233-2503 | Dallas, TX 75244