Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

NPRML XML namespace link does not return a schema #45

Closed
benlk opened this issue Mar 19, 2018 · 3 comments
Closed

NPRML XML namespace link does not return a schema #45

benlk opened this issue Mar 19, 2018 · 3 comments

Comments

@benlk
Copy link
Contributor

benlk commented Mar 19, 2018

The NPRML Namespace is xmlns:nprml=https://api.npr.org/nprml, but https://api.npr.org/nprml does not have a schema. Is this intentional?

The present version of the w3c recommendation for Namespaces in XML 1 doesn't require that the namespace URI reference be a link to an active schema doc:

The namespace name, to serve its intended purpose, SHOULD have the characteristics of uniqueness and persistence. It is not a goal that it be directly usable for retrieval of a schema (if any exists).

The entire document at https://api.npr.org/nprml is as follows:

{"error":"This API is not found. For documentation of current API services, please visit the NPR Developer Center."}

https://api.npr.org/ 301 redirects to https://www.npr.org/api/index.

@benlk
Copy link
Contributor Author

benlk commented Mar 19, 2018

And, should this URL be upgraded to HTTPS?

const NPRML_NAMESPACE = 'xmlns:nprml=http://api.npr.org/nprml';

@benlk
Copy link
Contributor Author

benlk commented Mar 20, 2018

Upgrading to HTTPS in #44.

@benlk
Copy link
Contributor Author

benlk commented Apr 20, 2018

Closing because the namespace link does not need to return a schema, according to the relevant XML specification.

@benlk benlk closed this as completed Apr 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant