title: creating xml using xsd
body: <p>I am creating an xml document using xsd. When the xml got created the encoding value is </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="WINDOWS-1252"?&gt;
  </code></pre>
  
  <p>what i required is </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p>Here is my xsd.
  
  </p>
  
  <pre><code>&lt;xs:element name="shiporder"&gt;
      &lt;xs:complexType&gt;
          &lt;xs:sequence&gt;
              &lt;xs:element name="orderperson" type="xs:string" /&gt;
              &lt;xs:element name="shipto"&gt;
                  &lt;xs:complexType&gt;
                      &lt;xs:sequence&gt;
                          &lt;xs:element name="name" type="xs:string" /&gt;
                          &lt;xs:element name="address" type="xs:string" /&gt;
                          &lt;xs:element name="city" type="xs:string" /&gt;
                          &lt;xs:element name="country" type="xs:string" /&gt;
                      &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
              &lt;/xs:element&gt;
              &lt;xs:element name="item" maxOccurs="unbounded"&gt;
                  &lt;xs:complexType&gt;
                      &lt;xs:sequence&gt;
                          &lt;xs:element name="title" type="xs:string" /&gt;
                          &lt;xs:element name="note" type="xs:string" minOccurs="0" /&gt;
                          &lt;xs:element name="quantity" type="xs:positiveInteger" /&gt;
                          &lt;xs:element name="price" type="xs:decimal" /&gt;
                      &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
              &lt;/xs:element&gt;
          &lt;/xs:sequence&gt;
          &lt;xs:attribute name="orderid" type="xs:string" use="required" /&gt;
      &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  </code></pre>
  
  <p> </p>
  
  <p>Can any please let me know why this is happening.</p>