Sure, we use IntelliJ as a source code editor. And we build our project using maven and the plugin content-package-maven-plugin. All of our nodes are represented as XML files in our source. For example:
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:Folder"/> IntelliJ (and plenty of other editors) validate and even autocomplete xml automatically based on the provided namespace. Because it cannot retrieve the namespaces http://sling.apache.org/jcr/sling/1.0 or http://www.jcp.org/jcr/1.0 it won't do that (of course it will still validate xml syntax). John Kramer Java Software Engineer E-Commerce Web Team e: john.kra...@panerabread.com <mailto:john.kra...@panera.com> m: 314-435-2370 On 2/13/20, 23:22, "Eric Norman" <enor...@apache.org> wrote: Hi John, Would it be possible for you to provide any more details about the use cases where you would be using validated xml files instead of JSON files? Regards, Eric On Thu, Feb 13, 2020, 10:45 AM John Kramer <john.kra...@panerabread.com> wrote: > That's disappointing. Have you guys ever considered producing an XSD? > Would make it easier to understand, validate, etc. > > John Kramer > Java Software Engineer > E-Commerce Web Team > e: john.kra...@panerabread.com <mailto:john.kra...@panera.com> > m: 314-435-2370 > > On 2/13/20, 02:39, "Julian Sedding" <jsedd...@gmail.com> wrote: > > Warning: This email originated from outside of Panera. Beware of > clicking links and attachments. > > > Hi John > > XML namespace names are usually URIs, supposedly to avoid collisions. > However, they are not required to be a URI nor are they required to > point to an actual document. The Wikipedia article on XML namespaces > has more detail: > https://en.wikipedia.org/wiki/XML_namespace#Namespace_names > > The last sentence of the linked section sums it up nicely: > > "In general, however, users should assume that the namespace URI is > simply a name, not the address of a document on the Web." > > Regards > Julian > > On Wed, Feb 12, 2020 at 10:08 PM John Kramer > <john.kra...@panerabread.com> wrote: > > > > Hi guys, > > > > Sorry if this question is a bit naïve. > > > > I see the xml namespace http://sling.apache.org/jcr/sling/1.0 all > over source files, but that link is a 404. Where can I actually look at the > namespace definitions? > > > > Thanks! > > > > John Kramer > > Java Software Engineer > > E-Commerce Web Team > > e: john.kra...@panerabread.com<mailto:john.kra...@panera.com> > > m: 314-435-2370 > > >