2:when we say <xs:element name="name" type="xs:string">,then "type" attribute belongs to which namespace,as it is not prefixed with anything?
The type attribute, just like the name attribute, is in null (or sometime said empty for the same) namespace. But these attributes are somehow ontologically "attached" to the element (xs:element) they are "describing" (if you are somehow knowing the rudiment of renaissance
philosophy, that might help a bit), their schema is normally appearing in the schema defining the xs namespace (that is the schema or schema). Does it make thing clearer? I think you might think, hell no! Maybe you might come back to it when time comes.