<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Change name attribute of structure root xml with name of field reference.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121042570" />
  <subtitle>Change name attribute of structure root xml with name of field reference.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121042570</id>
  <updated>2026-04-07T07:07:49Z</updated>
  <dc:date>2026-04-07T07:07:49Z</dc:date>
  <entry>
    <title>Change name attribute of structure root xml with name of field reference.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121042569" />
    <author>
      <name>Abraham John</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121042569</id>
    <updated>2021-08-16T20:12:18Z</updated>
    <published>2021-08-13T16:02:57Z</published>
    <summary type="html">&lt;p&gt;I have created this structure and give Field reference value as
  &amp;quot;myText&amp;quot; like below picture.&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/14/0/MicrosoftTeams-image.png/93df30e0-fc4b-e795-e5fa-ffbf8c5ab80a?t=1628870094729&amp;amp;imagePreview=1" /&gt;
  &lt;br /&gt;
  &lt;br /&gt; On accessing the root xml of structure, name attribute value of
  dynamic-element is a default text value. Like shown below.&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-html"&gt;&amp;lt;root available-locales=&amp;quot;en_US&amp;quot; default-locale=&amp;quot;en_US&amp;quot; version=&amp;quot;1.0&amp;quot;&amp;gt; 
   &amp;lt;dynamic-element index-type=&amp;quot;keyword&amp;quot; instance-id=&amp;quot;54vS2SGv&amp;quot; name=&amp;quot;Text13156709&amp;quot; type=&amp;quot;text&amp;quot;&amp;gt; 
       &amp;lt;dynamic-content language-id=&amp;quot;en_US&amp;quot;&amp;gt;textValue&amp;lt;/dynamic-content&amp;gt; 
   &amp;lt;/dynamic-element&amp;gt; 
&amp;lt;/root&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;How can i change name attribute to field reference text that i made
  while creating this structure?&lt;/p&gt;
&lt;p&gt;I'm using Liferay CE 7.4 version. &lt;/p&gt;</summary>
    <dc:creator>Abraham John</dc:creator>
    <dc:date>2021-08-13T16:02:57Z</dc:date>
  </entry>
</feed>
