Copyright by Kevin Howard Goldberg

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

Chapter 13. Using XML Namespaces

As you saw in the previous chapter, a namespace is a collection of related elements and attributes, identified by a namespace name. This namespace name must be unique, and is often referred to by its abbreviated name or prefix.

Namespaces are most often used to distinguish identically named elements from one another. Specifically, namespaces help to distinguish global elements that are identically named, since local elements and attributes are generally made unique by their context.

This combination of namespace name plus an element name is called an expanded name. Because a namespace name must be unique, the expanded name will also be unique. (Note: This combination is also referred to as a universal name, qualified ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required