I am trying to use WordToHtmlConverter class to convert a word document in HTML, but the documentation is not clear.
The WordToHtmlConverter has a constructor taking org.w3c.dom.Document, but I don't think it is the word document.
Does anyone have a sample program on how to load a word document and convert it into html.
You best bet for now is probably to look at the unit tests, eg TestWordToHtmlConverter. That will show you how to do it
In general though, you pass in the xml document to be populated, have WordToHtmlConverter generate the HTML into it from the Word document, then transform the xml document into appropriate output (indenting, new lines etc)
Your code would want to look something like: