XmlDocRepository.ResolveIncludes Method
- Namespace
- Kampute.DocToolkit.XmlDoc
- Assembly
- Kampute.DocToolkit.dll
Definition
Resolves
include elements in the specified XML document by importing content from external files.public virtual void ResolveIncludes(XDocument document, string includeDir)Parameters
documentXDocument- The XML document to resolve its
includeelements. includeDirstring- The directory to search for the included files.
Exceptions
- ArgumentNullException
- Thrown when
documentorincludeDirisnull. - FileNotFoundException
- Thrown when an included file is not found and no error handler is provided.

includeelement is replaced by all the elements that the XPath expression of itspathattribute selects from the file named by itsfileattribute, in document order.