title: How to insert XML Content in db using SQL Module
body: <p>I am a beginner in XQuery and
  I could use some help on how to insert XML elements in my MySQL database. So far, it only inserts pieces of fragments of an xml file but I'd like to fetch the full fragments, including the elements along the content.
  For instance, let's say I have :</p>
  <pre><code>let $element := &quot;&lt;exemple&gt;hello world&lt;/exemple&gt;&quot;
  let $currentDate := fn:format-dateTime(fn:current-dateTime(), &quot;[Y0001]-[M01]-[D01] [H01]:[m01]:[s01]&quot;)
  let $values :=  &quot;('&quot; ||  $element || &quot;','&quot; || $currentDate|| &quot;','&quot; || $currentDate ||  &quot;')&quot;
  
  
  let $q := 'INSERT into table (element,created,updated) values ' || $values
  let $conn := sql:connect(&quot;jdbc:mysql://xxxx:xxx@mysql:3306/database&quot;,map{'autocommit': true() ,'useUnicode':true(),'characterEncoding':'utf8'})
  let $s := sql:execute($conn, $q)
  let $conn := sql:close($conn)
  
  -----------------------------------------------------
  |   id  |   element     |   created     |   updated |
  -----------------------------------------------------
  |   x   |   hello world |   xxxxx       |    xxxxx  |           &lt;========   ? ( &quot;&lt;exemple&gt;hello world&lt;/exemple&gt;&quot;)
  </code></pre>
  <p>I actually need the full fragment. How to achieve that?</p>
  <p>Thanks for your help.</p>