While searching Web I encountered many examples of using namespaces in XML files. They mostly have this form:
<d:student xmlns:d='http://www.develop.com/student'>
<d:id>3235329</d:id>
<d:name>Jeff Smith</d:name>
<d:language>C#</d:language>
<d:rating>9.5</d:rating>
</d:student>
(this is example taken from https://msdn.microsoft.com/en-us/magazine/cc302166.aspx)
This line:
<d:student xmlns:d='http://www.develop.com/student'>
troubles me, pretty much because every example looks like this. Can it have a form of
<student xmlns:d='http://www.develop.com/student'>
So here I am declaring the same namespace identified by the same URI, but i don't want node where declaration is to have namespace. Is it correct? Long story short: is just xmlns:d='http://www.develop.com/student' a valid declaration for d: namespace?