Skip to main content


developerWorks  >  XML  >

XML Inclusions (XInclude)

Combine multiple XML documents

developerWorks

Level: Intermediate

Contributors: W3C

06 Feb 2007
Updated 25 Apr 2007

XML Inclusions (XInclude) is a system for merging XML documents, similar to built-in XML external entities, but with added features. Learn how to assemble one large document from one or more smaller ones, and even to pick and choose parts of the component documents using XPointer.

XML Inclusions (XInclude) Version 1.0 (Second Edition) [W3C Recommendation] provides a system for merging XML documents. XInclude is often used when you wish to split XML documents into manageable chunks. You can split the documents up as you like and then use XInclude to merge the documents back together. External parsed entities, XML 1.0 constructs that allow you to load portions of the document from a separate file, can be used similarly, and some contend that XInclude is an unnecessary specification. XInclude offers some special facilities, including the ability to select portions of documents for inclusion (by referencing an XPointer).


Resources


Back to top


Document options

Document options requiring JavaScript are not displayed