To connect the two documents, you include a reference to the XML Schema within your instance document.
You begin XML schema with the XML declaration, <?xml version="1.0"?>.
The root element within your XML Schema is the <schema> element.
Within the <schema> element, you have the namespace declaration.
The namespace of the <schema> element is http://www.w3.org/2001/XMLSchema.
targetNamespace attribute indicates that the vocabulary is for the namespace http://www.java2s.com/name.
You can declare a namespace that matches your targetNamespace with the prefix target to refer to any declarations within your XML Schema.
The attribute elementFormDefault controls the way namespaces are used within your corresponding XML document.
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:target="http://www.java2s.com/name"
targetNamespace="http://www.java2s.com/name"
elementFormDefault="qualified">
</schema>