[Chicago] python and xml
Edward Summers
ehs at pobox.com
Wed Jun 7 18:55:30 CEST 2006
On Jun 5, 2006, at 5:56 PM, Ian Bicking wrote:
> It validates that it is syntactically valid XML, but it doesn't check
> the DTD. As an example, this is syntactically valid XML:
>
> <html>
> <title>The title</title>
> </html>
>
> But the (X)HTML DTD I believe disallows that, and this is valid (X)
> HTML:
>
> <html>
> <head>
> <title>The title</title>
> </head>
> </html>
Validation has a special meaning in xml-land -- and what you are
talking about here as 'syntactically valid' is commonly called well-
formed in xml-land.
Pretty much all xml parsing libraries require at least well-formedness.
//Ed
More information about the Chicago
mailing list