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";

Currently, sgml.pl is not very suffisticated. It cannot handle complex SGML documents.

       

Routines

SGMLread_sgml

&'SGMLread_sgml(FILEHANDLE, *array_r);

SGMLread_sgml reads SGML markup. The *array_r is the returned array that contains tags separated from text. I.e. SGMLread_sgml splits the markup tags from text. Each array item is either a markup tag or a text. The order of tag/text items are the order they appear in the SGML document.

After SGMLread_sgml is called, one only needs to `shift' thru the items to read the SGML. If the item begins with a `<` it is a tag, else it is text.

Notes


See Also

dtd.pl
A Perl library to parse SGML DTDs.
dtd2html
Generate HTML documents that allows navigation through the stucture of an SGML DTD.
dtddiff
List changes in a DTD.
dtdtree
Generate content hierarchy trees of SGML elements.
stripsgml
Remove SGML markup.
       

Earl Hood, ehood@convex.com
sgml.pl 0.1.0