\section{Standard Module \sectcode{sgmllib}} \stmodindex{sgmllib} \index{SGML} \renewcommand{\indexsubitem}{(in module sgmllib)} This module defines a class \code{SGMLParser} which serves as the basis for parsing text files formatted in SGML (Standard Generalized Mark-up Language). In fact, it does not provide a full SGML parser --- it only parses SGML insofar as it is used by HTML, and the module only exists as a basis for the \code{htmllib} module. \stmodindex{htmllib} In particular, the parser is hardcoded to recognize the following elements: \begin{itemize} \item Opening and closing tags of the form ``\code{<\var{tag} \var{attr}="\var{value}" ...>}'' and ``\code{}'', respectively. \item Character references of the form ``\code{\&\#\var{name};}''. \item Entity references of the form ``\code{\&\var{name};}''. \item SGML comments of the form ``\code{