title: How to find XSD root element in C#
body: <p>Good day.</p>
  
  <p>As i know. There is a root element in XML file.</p>
  
  <p>But from the XSD file structure, it is not easy to get the root element value.
  Is there any method to do it?</p>
  
  <p>(I wouldn't like to take use of hard code to find XSD root element value in my project.
  i want to find the root element of "RootValueHere"</p>
  
  <pre><code>&lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xsd:element name="RootValueHere"&gt;
      &lt;xsd:complexType&gt;
        &lt;xsd:sequence&gt;
          &lt;xsd:element ref="DocumentInfo" minOccurs="1" maxOccurs="1" /&gt;
          &lt;xsd:element ref="Prerequisite" minOccurs="1" maxOccurs="1" /&gt;
        &lt;/xsd:sequence&gt;
      &lt;/xsd:complexType&gt;
    &lt;/xsd:element&gt;
    &lt;!-- Element of DocumentInfo --&gt;
    &lt;xsd:element name="DocumentInfo"&gt;
      &lt;xsd:complexType&gt;
        &lt;xsd:attribute name="Name" type="xsd:string" /&gt;
        &lt;xsd:attribute name="Description" type="xsd:string" /&gt;
        &lt;xsd:attribute name="Creator" type="xsd:string" /&gt;
        &lt;xsd:attribute name="CreateTime" type="xsd:string" /&gt;
      &lt;/xsd:complexType&gt;
    &lt;/xsd:element&gt;
    &lt;!-- Element of Prerequisite --&gt;
    &lt;xsd:element name="Prerequisite"&gt;
      &lt;xsd:complexType&gt;
        &lt;xsd:sequence&gt;
          &lt;xsd:element name="Type" type="Prerequisite.Type.type" minOccurs="1" maxOccurs="1" /&gt;
          &lt;xsd:element name="Miscellaneous" type="Prerequisite.Misc.type" minOccurs="0" maxOccurs="1" /&gt;
        &lt;/xsd:sequence&gt;
      &lt;/xsd:complexType&gt;
    &lt;/xsd:element&gt;
  </code></pre>
  
  <p></p>
  
  <p>thank you.</p>