News for hackers. Stuff that matters.
Re:Ask HN: Are people out there still using XML Schema? by mdaniel on Friday August 09, 2024 @07:20PM (#41206211)
"using" is one of those weird words: the Maven XML build file (and its settings, and a few others) still have versioned XML Schemas: e.g. https://maven.apache.org/xsd/maven-4.0.0.xsd and its friends https://maven.apache.org/xsd/

If you mean "stood up a consumer-facing service whose contract is dictated by WSDL and/or XML Schema," then I'm guessing the broad answer will be no because it's not kewl

As a TSC member of JSON Schema, the best DX thing you can push through would be the xsi:schemaLocation replacement because right now mapping files to their schema is some damn tomfoolery

Re:Ask HN: Are people out there still using XML Schema? by jviotti on Friday August 09, 2024 @07:32PM (#41206267)
> As a TSC member of JSON Schema, the best DX thing you can push through would be the xsi:schemaLocation replacement because right now mapping files to their schema is some damn tomfoolery

I'm not an XML Schema expert, and I might be missing something, but I believe what you are looking for is the "$schema" keyword (https://www.learnjsonschema.com/2020-12/core/schema/). You set it to a URI reference that can either point to a remote resource (i.e. over HTTP) or a local one using the "file://" scheme.