I am defining the elements of form in a simple XML structure like so:
<subtab id="page_background" label="Page Background" prefix="page">
<input label="Background color" field="bgcolor" type="color"/>
<input label="Background image" field="bgimage" type="image"/>
<space />
</subtab>
etc.
I have large blocks containing absolutely identical information, e.g. the form fields for defining the background of the page, the content area, the top bar, and so on. This is making the XML file very cumbersome to work with and look through.
Is there a native XML "Copy + Paste" construct / command / statement that tells the XML parser - in my case, simpleXML - to look up the contents of a certain branch from another?
In pseudo-code:
<subtab id="content_background" copyFrom="../page_background">
<!-- sub-elements from "page_background" are magically copied here
by the parser -->
</subtab>