title: XQuery syntax error
body: <p>On Oracle 11gR2 I need to retrieve portions of an XML file and create a new one:</p>
  
  <pre class="lang-sql prettyprint-override"><code>SELECT XMLQUERY
      ('for $e in /edi_l/trader
      where $e//pod="XX999"
      order by $e
      return &lt;pod&gt;{$e}&lt;/pod&gt;'
     passing MY_T.XML_FILE
  returning content
  )
  FROM MYTABLE MY_T;
  </code></pre>
  
  <p>The output:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;pod&gt;&lt;trader cdisp="AB1111"&gt;
  &lt;idimpp num="1234"&gt;
  &lt;hdr&gt;
  &lt;odn&gt;567&lt;/odn&gt;
  &lt;pod&gt;XX999&lt;/pod&gt;
  &lt;/hdr&gt;
  ...
  &lt;/idimpp&gt;
  &lt;/trader&gt;
  &lt;/pod&gt;
  </code></pre>
  
  <p>If I omit the tag</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;pod&gt;&lt;/pod&gt;
  </code></pre>
  
  <pre class="lang-sql prettyprint-override"><code>SELECT XMLQUERY
      ('for $e in /edi_l/trader
      where $e//pod="XX999"
      order by $e
      return {$e}
     passing MY_T.XML_FILE
  returning content
  )
  FROM MYTABLE MY_T;
  </code></pre>
  
  <p>I get errors:  </p>
  
  <pre><code>ORA-19114: XPST0003
  LPX-00801: XQuery syntax error at '{'
  4       return {$e}
  -              ^
  19114. 00000 -  "XPST0003 - error during parsing the XQuery expression: %s"
  *Cause:    An error occurred during the parsing of the XQuery expression.
  *Action:   Check the detailed error message for the possible causes.
  Error at Line: 30 Column: 6
  </code></pre>
  
  <p>Why?  </p>
  
  <p>I need to retrieve the data without creating a new external tag.  </p>