dotnet add package docx4j-ImportXHTML.NET --version
NuGet\Install-Package docx4j-ImportXHTML.NET -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="docx4j-ImportXHTML.NET" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add docx4j-ImportXHTML.NET --version
#r "nuget: docx4j-ImportXHTML.NET,"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install docx4j-ImportXHTML.NET as a Cake Addin
#addin nuget:?package=docx4j-ImportXHTML.NET&version=

// Install docx4j-ImportXHTML.NET as a Cake Tool
#tool nuget:?package=docx4j-ImportXHTML.NET&version=

To try it, in Visual Studio:

  1. create a new console app
  2. use NuGet Package Manager to fetch this (Install-Package ...)
  3. project properties, change startup object to docx4jImportXHTML.NET.samples.docx.ConvertInXHTMLFragment
  4. Start without Debugging (Ctrl+F5)

(Don't start debugging, since that's very slow. Also, note the first execution takes longer, loading JAXB Context etc. If your code doesn't exit, subsequent imports will be quicker)

For more sample code (in Java though) see

For questions/discussion, you can post to either (but not both, please) StackOverflow or

For issues/bugs relating generally to XHTML importing,

For issues/bugs specific to .NET, please use

Product Compatible and additional computed target framework versions.
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 1,366 8/13/2018 1,923 9/2/2014
3.0.1 1,659 3/6/2014

Release based on docx4j-ImportXHTML 6.0.1