Thanks for creating docx4j!
I have a question for anyone who stops by.
I'm working with ImportXHTML 3.2.2. I am using the example from ConvertInXHTMLFragment.java to turn a string of valid XHTML into the main body of my docx.
I wanted to try to make a header using XHTMLImporter.convert("<div>Hi</div>", null).
I followed the sample in the main docx4j github repo, HeaderFooterCreate.java. At like 125 I did something like:
hdr.getContent().add(XHTMLImporter.convert("<div>Hi</div>", null))
And then like
hdr.getContent().addAll(XHTMLImporter.convert("<div>Hi</div>", null)) ...