Say I have an xml
schema, defining the namespace: http://foo.com/mySchema
. Is there a standard way to publish the schema so that xml instances of the schema will only need to define the namespace and not the xsi:schemaLocation
?
For example, if you look at imdb's sitemap xml: http://ift.tt/1CC4JJQ
The xml defines a namespace: http://ift.tt/xwbjRF without also defining a schemaLocation.
If you visit this URI, it has 2 xsds there: "siteindex.xsd" and "sitemap.xsd"
My questions are:
- Is this part of the xml standard? Will every xml parser "know" how to find the schema from the namespace URI?
- Is there a standalone "xsd repo" tool that helps me to publish xsds under my domain, without the hassle of setting up a web server myself. I'm imagining something with some sort of RESTful API that allows me to
PUT
new schemas,DELETE
existing schemas and of courseGET
new schemas, using their namespaceURI
No comments:
Post a Comment