A namespace is a URI, but to avoid verbosity, prefixes are used as a proxy.
In the following example, the prefix my-prefix
is bound to the namespace http://www.example.com/my-namespace
by using the special attribute xmlns:my-prefix
(my-prefix
can be replaced with any other prefix):
<?xml version="1.0"?>
<my-prefix:foo xmlns:my-prefix="http://www.example.com/my-namespace">
<!-- the element my-prefix:foo
lives in the namespace http://www.example.com/my-namespace -->
</my-prefix:foo>