2 ms·
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:f
by Mikhail_Edoshin 7y ago
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.