No, the schema describes the structure of XML names: tags, relationships between parents and children, power, types, constraints, etc.
Namespaces are more like Java packages: they give you the ability to distinguish your tags from others.
You can combine XML streams together. If you and someone have a <name>
, you can have a foo
namespace, someone can have a bar
namespace, and you can tell the difference with <foo:name>
and <bar:name>
.
source share