OpenDataServices / org-ids

Front end application for http://org-id.guide
http://org-id.guide
Other
17 stars 9 forks source link

XML produced by org-id.guide appears to be invalid against IATI schema #204

Closed andylolz closed 6 years ago

andylolz commented 6 years ago

This XML: http://org-id.guide/download.xml

…appears to be invalid against the IATI schema. Here’s a travis build where it fails to validate: https://travis-ci.org/IATI/IATI-Codelists-NonEmbedded/builds/364483003

The issue appears to be instances where multiple comma-separated URLs are provided in the URL field. Like this one: https://github.com/andylolz/IATI-Codelists-NonEmbedded/blob/915a02da95a876e6f852cb4ac5eb2321eb878f60/xml/OrganisationRegistrationAgency.xml#L2440

I suppose it would be preferable to pick a single URL, and perhaps add any other URLs to the description.

I ran into this problem whilst trying to update the relevant IATI codelist from org-id.guide (IATI/IATI-Codelists-NonEmbedded#247).

Bjwebb commented 6 years ago

Thanks for looking into this.

My question here is whether we should edit this in the data, e.g. https://github.com/org-id/register/blob/master/lists/pk/pk-vswa.json#L7 , or change our XML code to handle the data. I think changing the data is probably better, as commas in a url field seems like something that might trip other people up. @timgdavies What do you think?

timgdavies commented 6 years ago

Agreed that we should change the source. I'll look into this shortly and will revert.

andylolz commented 6 years ago

Great. Once this is sorted, I’ll update the PR to IATI.

timgdavies commented 6 years ago

I've updated org-id.guide sources so it should be possible to update the PR from the live source.

andylolz commented 6 years ago

Thanks @timgdavies - lgtm!