News for hackers. Stuff that matters.
Re:JSON Feed by pfranz on Wednesday May 17, 2017 @07:37PM (#14363755)
Most of my experience is from Python. Each time I use it I have to look at the docs for etree (a library that ships with Python). We would hit performance and feature support issues with etree and tried lxml but had binary compatibility issues between our environments.

The Hitchhiker's Guide to Python[1] (a popular reference for Python) recommends untangle[2] and xmltodict[3], neither of which I've used.

I feel like in other languages I've used had similar brittleness when dealing with xml. I might be biased because working with xml in an editor it's difficult to validate visually or grok in general when used in practice.

[1] http://python-guide-pt-br.readthedocs.io/en/latest/scenarios...

[2] https://untangle.readthedocs.io/en/latest/

[3] https://github.com/martinblech/xmltodict

Re:JSON Feed by moolcool on Wednesday May 17, 2017 @10:04PM (#14364352)
Beautiful Soup is alright in most cases. JSON is handled much better than any XML library I've seen so far though.
Re:JSON Feed by pfranz on Thursday May 18, 2017 @02:08AM (#14365155)
Oh yes, I've used Beautiful Soup, too. If I remember correctly I had great luck with html, but issues with xml. It also is only a reader, not a writer.