title: Creating xsd from xml
body: <p>I have a .xsd file , in which I have one element which have few other child elements. Also, there is one .xml file which contains testcases and testresults.
  My task is to create another .xsd file using this .xml file and inherit the extra elements, if needed.</p>
  
  <p>But I guess there is some namespace issue due to which my testcase is failing. Also, elements are not getting inherited, although I used extension base for the same. Schema file is:</p>
  
  <pre><code>&lt;xs:complexType name="PopButtonType"&gt;
   &lt;xs:sequence name="InLine" type="InLineType"&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="InlineType"&gt;
  &lt;xs:choice&gt;
    xs:element name="Program" type="ProgramType"/&gt;
   &lt;xs:element name= "StopApp" type="StopAppType"/&gt;
  &lt;/xs:choice&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>The .xml file is as follows:</p>
  
  <pre><code>&lt;testcase&gt;
  &lt;Root&gt;
  &lt;PopButton&gt;
    &lt;Inline&gt;
      &lt;Program context="abc"/&gt; 
    &lt;/Inline&gt;
  &lt;/PopButton&gt;
  &lt;/Root&gt;
  &lt;/testcase&gt;
  
  &lt;testresult&gt;
  &lt;Root&gt;
    &lt;PopButton&gt;
        &lt;Inline&gt;
            &lt;StartApp id="xyz"/&gt;
        &lt;/Inline&gt;
    &lt;/PopButton&gt;
  &lt;/Root&gt;
  &lt;/testresult&gt;
  </code></pre>
  
  <p>According to the .xml file, I need to create two .xsd file(one for testcases , another for testresults)</p>
  
  <p>So, in testresults as we can see, we have one new element inside PopButton: StartApp .. please let me know how to inherit this element in another schema file.</p>
  
  <p>Also, how should we do the namespacing??</p>