-
What XML parser do you recommend?
-
All being equal, if a website offered data in JSONP and XML and you needed it a few times every day, which would you choose? Or it wouldn’t matter?
1 Like
-
According to https://hex.pm/packages?_utf8=✓&search=xml&sort=recent_downloads,
sweet_xml
is the most popular one. -
It wouldn’t probably matter then (to me, at least). Even reading and decoding it by hand could be an option …
- If you do not fear Erlang then you can use
xmerl
directly (beware of a lot of records) for whichsweet_xml
is only wrapper, or you can checkerlsom
. - JSON is probably faster and easier to parse, but if this only few times a day this do not matter at all.
3 Likes