Search code examples
c#.netxmlalternatexinclude

Alternative to XInclude


As far as I know there is no support for XInclude in .net.

I'd like to leverage the same kind of mechanism for hierarchically organized XML configuration files. I mean I have a top-level XML config file referencing specific Xml files. My configuration is a cluster of configurations dedicated to one particular module.

How should I do it ? (Or maybe why I shouldn't do it..)


Solution

  • First of all, there is some 3rd party support for XInclude in .NET XInclude.NET on Codeplex.

    If you are asking because of the configuration files, they have some sort of the same functionality build-in with configSource attribute, see this article describing it.