code: def __xinclude_libxml2(target, source, env):
      
      doc = libxml2.readFile(str(source[0]), None, libxml2.XML_PARSE_NOENT)
      doc.xincludeProcessFlags(libxml2.XML_PARSE_NOENT)
      doc.saveFile(str(target[0]))
      doc.freeDoc()
  
      return None
docs: Resolving XIncludes, using the libxml2 module.