When you create a new silverlight page, you get a number of xml namespaces auto created in the user control tag. Eg –
<UserControl x:Class="QuickStart.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="400">
I know that xmlns has the core silverlight tags, 😡 has xaml language elements, :d has expression blend stuff etc. My question is this – does silverlight actually make a call to the defined schema UIs either during design or run-time? I can’t imagine that it is going out to schemas.microsoft.com every time it renders a page. But if not, are the URIs effectively just constants?
XML namespaces are URLs, but in most cases, they don’t correspond to actual websites, or documentation or anything. They basically serve to provide a unique identifier for XML elements, as long as everyone cooperates an uses a domain name that they own as part of the URL. In the early days, whoever came up with using URLs for xmlns’s may have intended for people to post documentation at the URLs, but nobody really does that.
XML parsers do not visit these URLs at any point, they are basically just identifiers.