Hi, me again :)
I have a problem when calling getJAXBNodesViaXPath("//w:bookmarkStart") (the problem is still there with any other valid xpath expression) on any header, document or footer part, when the part is containing a floating image ("in front of the text").
It's related to my last issue : http://www.docx4java.org/forums/docx-java-f6/classcastexception-org-docx4j-wml-tblpr-cannot-be-cast-t1051.html.
My stack trace :
java.lang.RuntimeException: javax.xml.xpath.XPathExpressionException
at org.docx4j.XmlUtils.xpath(XmlUtils.java:922)
at org.docx4j.XmlUtils.xpath(XmlUtils.java:895)
at org.docx4j.XmlUtils.getJAXBNodesViaXPath(XmlUtils.java:873)
at org.docx4j.openpackaging.parts.WordprocessingML.MainDocumentPart.getJAXBNodesViaXPath(MainDocumentPart.java:175)
...
Caused by: ...