xmln:tns and targetNamespace
It lets you refer to the namespace later in the schema. For example, if you declare a named type and then want to also declare an element of that type <complexType name=”someType”> <!– … –> </complexType> <element name=”someElement” type=”tns:someType” /> Simply saying type=”someType” wouldn’t work because that would be referring to the (non-existent) someType in … Read more