These functions are needed in the parser to retrieve information about the table for endtag omission. This table is generated on the file ``taglist.i'' (see ``gen_taglist.c''). index() returns given a name, the corresponding index in the table. omit_endtag() returns whether or not the endtag of the given element-name may be omitted according to the DTD.
contain_elem() (contain_data()) return TRUE when elem (ch) is part of the content model of the element referenced by name.