3.5. XML Namespaces
The intent of XML namespaces is to eliminate naming conflicts in XML documents that contain element types and attributes from multiple XML languages. Namespaces can prove useful in situations in which documents combine components from several fields that have the same name but are used in a different context. For example, the bird classification document shown previously in Example 3-6 uses the element <name> to identify a particular species of heron:
<name language="latin">Ardea herodias</name> <name language="english">Great Blue Heron</name>
The <name> element we saw in Example 3-8 identifies the contributing authors of an article:
<name>George W. Archibald</name> <name>James C. Lewis</name>
Each of the name elements ...
Get Secure XML: The New Syntax for Signatures and Encryption now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.