From the course: XML Essential Training (2018)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

XML namespaces

XML namespaces - XML Tutorial

From the course: XML Essential Training (2018)

Start my 1-month free trial

XML namespaces

- [Narrator] We'll wrap up this chapter by talking about XML Namespaces and why they're used. XML Namespaces have the form of the letters XMLNS and then equal to some character string. And if you've used HTML before, you've probably seen something like this. It usually appears on the HTML tag. Now the character string that goes inside that XMLNS attribute just has to be unique. It's usually a URL, but it doesn't have to be. The spec just says it needs to be a unique value. And in fact, the XML parser doesn't even try to access whatever is at that URL. XML Namespaces are used to prevent tags from different languages from conflicting each other when you try to use them in the same XML document. Remember, and I've said this many times now, X in XML stands for extensible, so I can define my own tags. Now if I want to create an XML document that includes tags from different tag sets, there's the potential for someone using the same name for a tag that I've decided to use in my tag set. So,…

Contents