Migrating from DTD to XSD and for some reason the transition is a bumpy one. I understand how to define the schema once I\'m inside the root t
xmlns="uri1" and xmlns:whatever="uri2" are namespace node and not attributes. Their role is to say that when you see element in your XML document named whatever:myElement, then the element belongs to the "whatever" namespace. This "whatever namespace" is identified by the uri declared in the namespace node.targetNamespace is an attribute. It contains an URI that identify the elements, types and group you define in your schema.xs:import you can import schemas from different namespace to use their elements and types in your own schema. When using xs:import, the imported schema and the importing schema must have different namespace. Use xs:include if it's the same namespace.