I’ve recently released a new version of MyAnimeListSharp and I’d like to talk about a challenge I faced while implementing it.
MAL (MyAnimeList.net) API returns search responses in an XML format instead of in JSON. To make library users’ lives easier, I decided to deserialize the XML response into an object (either as AnimeSearchResponse or MangaSearchResponse) for easier processing. Then Alas, I run into a problem. For some reason, I am not able to deserialize XML into an object due to undeclared XML entities such as
< (<) or