Importing one XML file into another

Hi there,

I have a whole bunch of XML files which all have exactly the same section at the top. Rather than repeat this code in all the files, is it possible to have the code in one file, and then import it into the others, in the same was as @import in CSS?

Thanks in advance!

I would think you could probably use INCLUDES through a serverside language (I am unsure if XML has its own level of includes) to achieve the same thing.

Note: I found this article which may be of use: http://hypercontent.sourceforge.net/docs/manual/develop/xmlincludes.html :slight_smile:

Thanks, you’re right. Searching “XML includes” led me to this article, which provides a couple of different solutions:

http://www.xml.com/pub/a/2002/07/31/xinclude.html

I posted my reply before I saw your update, will check that site also!
Cheers