What XML parser?

  1. What XML parser do you recommend?

  2. 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

:wave:

  1. According to https://hex.pm/packages?_utf8=✓&search=xml&sort=recent_downloads, sweet_xml is the most popular one.

  2. It wouldn’t probably matter then (to me, at least). Even reading and decoding it by hand could be an option …

  1. If you do not fear Erlang then you can use xmerl directly (beware of a lot of records) for which sweet_xml is only wrapper, or you can check erlsom.
  2. JSON is probably faster and easier to parse, but if this only few times a day this do not matter at all.
3 Likes