This is what the xinclude W3C standard means . Similar to the approach of external objects (as in the answer above), you can encode content that will be included in a separate file, for example, for example. (Frag.xml):
<a></a>
XML xinclude :
<document>
<xi:include href="frag.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
<b/>
</document>
XML-, xinclude (, Xerces http://xerces.apache.org/), xinclude , . @href URI, (, href="frag.xml#fragment1).
URI @href, xinclude @xpointer. XPointer XPointer, . () XSLT: XIPr (http://dret.net/projects/xipr/).