package similar to XML::Simple

"Martin v. Löwis" martin at v.loewis.de
Tue Feb 10 14:43:30 EST 2004


Peter Hansen wrote:
> Hmm... so it's your opinion that *all* XML parsers must handle *all*
> aspects of XML?  If not, I think you should back off on the criticism
> of PyRXP as being "not an XML parser" and simply point out that it
> doesn't handle all aspects of XML because it is intended to provide
> a very fast/heavily optimized approach to parsing only certain kinds
> of XML.

I am not Uche, but I think that all XML parsers should conform to the
XML recommendation (and treat deviations from the XML recommendation
as bugs).

This is not the same as handling all aspects of XML, since the XML
recommendation makes certain aspects optional. Processing character
references is not one of them (but e.g. validation is).

> It's a valid choice to do so, though of course if PyRXP is
> promoted as a "full" XML solution that might be inaccurate.

Packages may help processing only selected XML documents, and they
may also support documents which are not XML. However, in neither
case, they should call themselves "XML parsers". "XML-like parsers"
or "XML subset parsers" might be more appriate.

Regards,
Martin




More information about the Python-list mailing list