sgmllib.py not good at handling <br/>
Alex Martelli
aleaxit at yahoo.com
Mon May 14 11:58:35 EDT 2001
"Chris Withers" <chrisw at nipltd.com> wrote in message
news:mailman.989852121.17250.python-list at python.org...
...
> > AFAIK, SGML empty elements don't need the trailing "/".
> > Try to use xmllib in place of sgmllib (your code will perhaps need some
> > rework).
>
> So is SGML a subset of XML?
No! The reverse. But sgmllib does NOT cover all of SGML
(not even any _substantial_ fraction of it: SGML is really
huge, which is why it was subsetted to produce XML!-), just
what little of it is needed to parse typical HTML, as
the library reference manual says.
Alex
More information about the Python-list
mailing list