<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>MySQL: Read and write values from XML (e.g. TYPO3 FlexForm) · GitHub</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/642 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="642"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="code"&gt;&lt;pre class="txt"&gt;# Read: Show real path in sys_file_storage
select name, uid, ExtractValue(configuration, '//T3FlexForms/data/sheet[@index=&amp;quot;sDEF&amp;quot;]/language/field[@index=&amp;quot;basePath&amp;quot;]/value') path from sys_file_storage where uid &amp;gt; 0 

# Write: Set a new value (in this case a detail pid) in FlexForm of a tt_news plugin
UPDATE tt_content SET pi_flexform = UpdateXML(pi_flexform, '//T3FlexForms/data/sheet[@index=&amp;quot;s_misc&amp;quot;]/language/field[@index=&amp;quot;PIDitemDisplay&amp;quot;]/value', CONCAT('&amp;lt;value index=&amp;quot;vDEF&amp;quot;&amp;gt;', 123, '&amp;lt;/value&amp;gt;' )) WHERE uid=11107&lt;/pre&gt;&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/642/rev-raw/33187832bdcfdf72f741112006ad44ba9055e96e/MysqlXml.txt" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/642#MysqlXml.txt"&gt;MysqlXml.txt&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
