XML Considered Harmful

Dan Stromberg drsalists at gmail.com
Tue Sep 21 22:46:19 EDT 2021


On Tue, Sep 21, 2021 at 7:26 PM Michael F. Stemper <
michael.stemper at gmail.com> wrote:

> If XML is not the way to package data, what is the recommended
> approach?
>

I prefer both JSON and YAML over XML.

XML has both elements and tags, but it didn't really need both. This
results in more complexity than necessary.  Also, XSLT and XPath are not
really all that simple.

But there's hope.  If you're stuck with XML, you can use xmltodict, which
makes XML almost as easy as JSON.

HTH.


More information about the Python-list mailing list