Xml schema: empty targetNamespace

Is it possible to use the targetNamespace attribute or empty in the Xml schema?

If so, what does it mean, are we “adding” something to the “empty namespace” (which always exists) or creating an “anonymous namespace” that is not associated with other schemas?

What would an instance of an xml document look like, should elements explicitly be bound to some namespace?

+5
source share
2 answers

See XML Schema Part 0: Primer for a brief description of how undeclared targetNamespaces work.

TargetNamespace, . spec:

, targetNamespace , . , ·, {target namespace}, - , targetNamespace, .

+11

, . XML - , , XML "XML-".

+3

All Articles