{"id":15551366,"date":"2022-04-12T13:01:14","date_gmt":"2022-04-12T13:01:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/xml-inside-custom-element\/"},"modified":"2022-04-12T13:01:14","modified_gmt":"2022-04-12T13:01:14","slug":"xml-inside-custom-element","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/xml-inside-custom-element\/","title":{"rendered":"XML inside custom element?"},"content":{"rendered":"<p>Hi,<br \/>\nI wanted to ask if there is a way to enclose the whole produced XML inside a custom element.<br \/>\nFor example:<\/p>\n<p>Instead of<br \/>\n&lt;products&gt;<br \/>\n  &lt;product&gt;<br \/>\n    &#8230;<br \/>\n  &lt;\/product&gt;<br \/>\n&lt;\/products&gt;<\/p>\n<p>to have something like<br \/>\n&lt;shop1&gt;<br \/>\n  &lt;products&gt;<br \/>\n    &lt;product&gt;<br \/>\n      &#8230;<br \/>\n    &lt;\/product&gt;<br \/>\n  &lt;\/products&gt;`<br \/>\n&lt;\/shop1&gt;<\/p>\n","protected":false},"template":"","class_list":["post-15551366","topic","type-topic","status-publish","hentry","topic-tag-element","topic-tag-xml"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15551366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15551366\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15551366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}