SSIS - XML Validation Error - "Expected schema root"
<p>I have an XML Task within an SSIS package that is giving me the following error when run:</p>

<pre><code>Error: 0xC002F304 at XML Task, XML Task: An error occurred with the following error
  message: "Expected schema root. Make sure the root element is &lt;schema&gt; and the 
  namespace is 'http://www.w3.org/2001/XMLSchema' for an XSD schema or 
  'urn:schemas-microsoft-com:xml-data' for an XDR schema.".
</code></pre>

<p>Here's an example of the XML document:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
&lt;Item xmlns="http://path.to.namespace.com"&gt;
    &lt;Name&gt;Notebook&lt;/Name&gt;
    &lt;Price&gt;4.95&lt;/Price&gt;
&lt;/Item&gt;
</code></pre>

<p>The XSD document looks like this (reformatted to fit better here - in the actual XSD the schema tag is all one line):</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
               targetNamespace="http://path.to.namespace.com" 
               xmlns="http://path.to.namespace.com" 
               elementFormDefault="qualified"&gt;

&lt;!-- id_ps --&gt;
&lt;xs:element name="Item"&gt;
    &lt;xs:complexType&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name="Name" type="xs:string"/&gt;
            &lt;xs:element name="Price" type="xs:decimal"/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
&lt;/xs:element&gt;

&lt;/xs:schema&gt;
</code></pre>

<p>I've run the XSD/XML combo through a few online validators and it seems to be just fine. I've even taken out all file connections and done Direct Input for both the XML and XSD on the task to rule out any file permissions - exact same error.</p>

<p>Here is my XML Task configuration:</p>

<pre><code>Input
  Operation Type:         Validate
  Source Type:            Direct Input
  Source:                 (see above XML)

Output
  SaveOperationResult:    False

Second Operand
  SecondOperandType:      Direct Input
  SecondOperand:          (see above XSD)

Validation options
  ValidationType:         XSD
  FailOnValidationFail:   False
</code></pre>

<p>I don't have a ton of experience with XML/XSD, and the XSD was generated by a third party vendor.</p>

<p>Is there anything that I'm just totally missing here?</p>