sgml.pl

sgml.pl is a Perl library that parses an SGML document instance.


Usage

If installed correctly, the following Perl statement can be used to access the library routines:

    require "sgml.pl";

Routines

SGMLread_sgml

&SGMLread_sgml(FILEHANDLE);

SGMLread_sgml reads SGML markup. Callbacks are called when certain events occur to do any processing on the data. The callbacks should be set before the call to SGMLread_sgml. The following lists the events and the callback invoked:

An open tag
&$sgml'OpenTagFunc($gi, $attribute_list);
An end tag
&$sgml'EndTagFunc($gi);
A comment
&$sgml'CommentFunc(*comment_text);
Processing instruction
&$sgml'ProcInsFunc(*pi_text);
Character data
&$sgml'CdataFunc(*cdata);

Notes


Availability

This software is part of the perlSGML package; see (http://www.oac.uci.edu/indiv/ehood/perlSGML.html)


Author

Earl Hood
ehood@medusa.acs.uci.edu
Copyright © 1997