Title: Kein Folientitel
13
XML Namespaces
2XML Namespaces
Order No. 13-453 Dear Dr. Smith, we confirm
your order of thebook 1 The XML
Handbook ISBN 0130811521 Price USD 44.95 and
ask you kindly to transfer the amount ... Best
regards
"Title"
3Collision
Dr.
Paul Smithstname ...
...
... ...
XML Handbook
Goldfarb
Prescod
Prentice Hall
655 0130811521
44.95
4Namespace Declaration
xmlnsbk"http//www.net-standard.com/namespaces/b
ooks" xmlnscust"http//www.net-standard.co
m/namespaces/customer" xmlnsfin"http//www
.net-standard.com/namespaces/financial"
XML Handbook
0130811521 fincurrency"USD"44.95
Dr.
Paul
Smith
...
...
...
...
5Default Namespace
-standard.com/namespaces/order"
xmlnsbk"http//www.net-standard.com/namespaces/b
ooks" xmlnscust"http//www.net-standard.co
m/namespaces/customer" 20.10.199
9 55544-3ber XML
Handbook
0130811521
Dr. Paul
Smith
...
...
6Override Default Namespaces
ces/order" xmlnsord"http//www.net-stan
dard.com/namespaces/order"
xmlnsbk"http//www.net-standard.com/namespaces/
books" xmlnscust"http//www.net-standard.
com/namespaces/customer" xmlns"http//www.w3.org/1999/xhtml"
Order Book
order The order of the
following books is made by phone...
20.10.1999
55544-3
XML Handbook
7Empty Namespace
-standard.com/namespaces/order"
xmlnsbk"http//www.net-standard.com/namespaces/b
ooks" xmlnscust"http//www.net-stand
ard.com/namespaces/customer"
20.10.1999
55544-3
0130811521
This comment belongs to no
namespace
Paul
Smith
...
...
...
8 Namespaces and Attributes
-standard.com/namespaces/order"
xmlnsbk"http//www.net-standard.com/namespaces/
books" xmlnscust"http//www.net-standard.
com/namespaces/customer" xmlnsfin"http//
www.net-standard.com/namespaces/financial"
order-number"55544-3" 20.10.1999
XML
Handbook
0130811521
Dr. Paul
Smith
...
...
These attributes donot belong to a namespace
9 Namespaces and Attributes
-standard.com/namespaces/order"
xmlnsord"http//www.net-standard.com/namespaces
/order" xmlnsbk"http//www.net-standard.
com/namespaces/books" xmlnscust"http//ww
w.net-standard.com/namespaces/customer"
xmlnsfin"http//www.net-standard.com/namespaces
/financial" ordorder-number"55544-3"
20.10.1999
XML Handbook
0130811521
Dr. Paul
Smith
...
...
10Summary
- XML namespaces identify the semantics of an
element or attribute, especially in cases where
documents have elements with the same names but
different meaning. This is the case, for example,
where standardized DTDs are used. - XML namespaces are increasingly used in XML
applications to ensure the consistency of the
meaning of names in documents and applications.