How to parse XHTML with xml.parsers.xmlproc?

Alex Martelli aleax at
Mon Sep 17 15:12:22 CEST 2001

"Paavo Hartikainen" <pahartik at> wrote in message
news:87r8t6m6bj.fsf at
> I was under the impression that well-formedness is also defined
> somehow in DTD.

Well... there *IS* that abomination which is called CDATA,
which can indeed make well formedness dependent on DTD's,
for an otherwise constant "stream of characters".  *Shudder*.

I think you need that in XHTML for such things as <style>
and <script>, which embed in the otherwise-XML-compliant
document "arbitrary" pieces of other-language syntax.  A
hack by any other name...


More information about the Python-list mailing list