title: No grammar constraints (DTD or XML schema) detected for the given document
body: <p>This is xsd file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;schema xmlns="http://www.w3.org/2001/XMLSchema" 
          targetNamespace="http://www.example.org/onetext"
          xmlns:tns="http://www.example.org/onetext" 
          elementFormDefault="qualified"&gt;
    &lt;element name="edge"&gt;
      &lt;complexType&gt;
        &lt;attribute name="x" type="float"&gt;&lt;/attribute&gt;
        &lt;attribute name="y" type="float"&gt;&lt;/attribute&gt;
        &lt;attribute name="height" type="float"&gt;&lt;/attribute&gt;
        &lt;attribute name="width" type="float"&gt;&lt;/attribute&gt;
        &lt;attribute name="xhref" type="string"&gt;&lt;/attribute&gt;
        &lt;attribute name="id" type="string"&gt;&lt;/attribute&gt;
        &lt;attribute name="isLocked" type="string"&gt;&lt;/attribute&gt;
        &lt;attribute name="rx" type="double"&gt;&lt;/attribute&gt;
        &lt;attribute name="ry" type="float"&gt;&lt;/attribute&gt;
        &lt;attribute name="rotation" type="float"&gt;&lt;/attribute&gt;
      &lt;/complexType&gt;
    &lt;/element&gt;
  &lt;/schema&gt;
  </code></pre>
  
  <p>This is xml file , </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;edge xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xmlns="http://www.example.org/onetext"
        xmlns:web="http://www.example.org/onetext"
        xsi:schemaLocation="web_one/WebContent onetext.xsd"
        id="WebApp_ID" version="3.0"&gt;
    &lt;image x="336" 
           y="52" 
           height="57.6" 
           width="57.6"
           xhref="/dccp_repository/dam/logo/images/accc_logo.jpg" 
           id="Image_3"
           isLocked="false" 
           rx="336" 
           ry="52" 
           rotation="0" /&gt;
  &lt;/edge&gt;
  </code></pre>
  
  <p>I faced this kind of problem.</p>
  
  <blockquote>
    <p><strong>No grammar constraints (DTD or XML schema) detected for the document.</strong> </p>
  </blockquote>
  
  <p>in xml document.</p>
  
  <p>If I changed root node of xml file like given below</p>
  
  <pre><code>&lt;edge xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:web="web_one/WebContent/onetext.xsd"
        xsi:schemaLocation="web_one/WebContent  
                            web_one/WebContent/onetext.xsd"
        id="WebApp_ID" 
        version="3.0"&gt;
  </code></pre>
  
  <p>then I faced this kind of error</p>
  
  <blockquote>
    <p><strong>cvc-elt.1: Cannot find the declaration of element 'edge'.</strong></p>
  </blockquote>
  
  <p>I confused with this concept. Please help.</p>