title: U-SQL XML outputter using an XSD
body: <p>Is there a way to generate XML output using U-SQL that complies with an XSD ?</p>
  
  <p>For example lets consider i have the following XSD.</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="MyClass"&gt;
      &lt;xs:complexType&gt;
        &lt;xs:sequence&gt;
          &lt;xs:element name="Field1"
                      type="xs:string"/&gt;
          &lt;xs:element name="Field2"
                      type="xs:string"/&gt;
        &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>I also have a table in ADLA called Person that has all the data i need for this schema.</p>
  
  <p>I write the following query to get the data from ADLA</p>
  
  <pre><code>@res = SELECT * FROM person 
  OUTPUT @res
  TO "person.xml"
  USING new XmlOutputter("abc")
  </code></pre>
  
  <p>I am aware i can use the XMLOutputter but i am unable to generate XML as output that will fit the schema. I can write a custom activity to do this but i want to make sure i am not missing something that can do this for me built in.</p>
  
  <p>Any examples would be appreciated.</p>