title: How to make Eclipse use autocompletion according to referred schema
body: <p>Im trying to create a schema for an xml document for autocompletion in Eclipse, but I cant find any tutorials on how to do it. I have created an xsd file.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  
  &lt;xs:element name="note"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="to" type="xs:string"/&gt;
        &lt;xs:element name="from" type="xs:string"/&gt;
        &lt;xs:element name="heading" type="xs:string"/&gt;
        &lt;xs:element name="body" type="xs:string"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>but when trying to create the xml document, there is no autocomplete. My xml doc begins with </p>
  
  <pre><code>&lt;root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="C:/root/to/namespace/dir
           C:/root/to/namespace/dir/namespace.xsd"&gt;
  </code></pre>