Close menu


Updated: 2016-06-07T02:40Z

XInclude is a generic mechanism for merging XML documents, by writing inclusion tags in the "main" document to automatically include other documents or parts thereof.[1] The resulting document becomes a single composite XML Information Set. The XInclude mechanism can be used to incorporate content from either XML files or non-XML text files.


For example, including the text file license.txt:

This document is published under GNU Free Documentation License

in an XHTML document:

<?xml version="1.0"?><html xmlns=""      xmlns:xi="">   <head>...</head>   <body>      ...      <p><xi:include href="license.txt" parse="text"/></p>   </body></html>


<?xml version="1.0"?><html xmlns=""      xmlns:xi="">   <head>...</head>   <body>      ...      <p>This document is published under GNU Free Documentation License</p>   </body></html>

The mechanism is similar to HTML's <object> tag (which is specific to the HTML markup language), but the XInclude mechanism works with any XML format, such as SVG and XHTML.

Web Browser Support

See also


  1. ^ J. Marsh; D. Orchard; Daniel Veillard. "XML Inclusions (XInclude) Version 1.0 (Second Edition), Appendix C: Examples (non-normative)". World Wide Web Consortium. Retrieved 2007-06-28. 
  2. ^ Brettz9. "XInclude". Mozilla Developer Network. 

External links

Text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.

Also On Wow


    Trending Now