News for hackers. Stuff that matters.
Re:When XML Beats JSON: UI Layouts by Mikhail_Edoshin on Thursday October 31, 2019 @01:46AM (#21406057)
Namespace prefixes in XML can be a) shortened and b) removed by setting the default namespace. I.e. the following are equivalent:

    <foo:bar xmlns:foo="urn:foo-corp">
      <foo:baz />
    </foo:bar>
    <f:bar xmlns:f="urn:foo-corp">
      <f:baz />
    </f:bar>
    <bar xmlns="urn:foo-corp">
      <baz />
    </bar>
These forms can happily co-exist in the same document, e.g. you can start at the top with one default namespace and then switch it in some branch into another.

There are no comments on this comment yet.