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:
And then like
In both cases I run into "SAXException2 unable to marshal type "java.lang.Boolean" as an element because it is missing an @XmlRootElement annotation"
Is there a better way to add a header or do I need to keep trying to debug my modifications to the code?