Hi Jason,
I just use content control to complete word generation. While encounting this case: i want to copy some paragraphs serverl times from my template and bind different content to the corresponding position. i tried to use the bookmark to find wanted paragraph and copy to my document. Unluckily, the program meets exception with this:
ERROR org.docx4j.XmlUtils .xpath line 995 - javax.xml.xpath.XPathExpressionException
Exception in thread "main" java.lang.RuntimeException: javax.xml.xpath.XPathExpressionException
at org.docx4j.XmlUtils.xpath(XmlUtils.java:996)
at org.docx4j.XmlUtils.xpath(XmlUtils.java:969)
at org.docx4j.XmlUtils.getJAXBNodesViaXPath(XmlUtils.java:947) ...