65.9K
CodeProject is changing. Read more.
Home

XInclude

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.50/5 (3 votes)

Oct 31, 2001

viewsIcon

76811

downloadIcon

1893

XML <xinclude> implementation using XML SAX2 API from Microsoft XML Parser

Introduction

XInclude.exe is a command line program for processing XML <xinclude> elements according to the latest XInclude draft specification (dated May 16, 2001). Here is an example of a part of an XML document:

<section xmlns:xinclude="http://www.w3.org/2001/XInclude">
  <xinclude:include href="part1.xml"/>
</section>

When you run XInclude.exe on this document it simply replaces the <xinclude:include> element with the contents of the XML document part1.xml. As such it works exactly like the #include statement in C/C++.

Features

  • Low memory overhead through use of the XML SAX2 API
  • Indents inserted documents according to the indentation level of the parent document
  • Supports both parse="xml" and parse="text" methods
  • Supports nested includes

System Requirements

  • Requires Microsoft XML Parser (tested against the 3.0 Release)
  • Tested on Windows 2000 Professional

For more information see http://xinclude.net