September 2002
Intermediate to advanced
1008 pages
22h 3m
English
Namespaces are declared by using a family of reserved attributes. In XML 1.0, attributes starting with the three letters ‘xml’ (including variants with capital letters) are reserved for W3C use. To declare a default namespace, you add an attribute named ‘xmlns’ that has a value of the URI you choose to associate the namespace with. For example:
<Customer xmlns="http://www.example.com/foo">
* * * * *
</Customer> In the preceding example, a default namespace is declared. All unprefixed elements will be in the namespace associated with the URI ‘http://www.example.com/foo’.
Note
As specified in the Namespace Recommendation, all unprefixed attributes are unqualified—not part of any namespace.
There needs to be a way to ...
Read now
Unlock full access