Open allenfoxtc opened 10 years ago
I got a solution to resovle @XmlElementDecl not defined problem:
org.docx4j.convert.in.word2003xml.Word2003XmlConverter.Word2003XmlConverter(Source source) {
...
// add w14 & w15 ObjectFactory
JAXBResult result = new JAXBResult(JAXBContext.newInstance(org.docx4j.convert.in.word2003xml.ObjectFactory.class, org.docx4j.w14.ObjectFactory.class, org.docx4j.w15.ObjectFactory.class));
...
}
But the output docx file lost some elements.
When i try to load a word 2003 xml Using Word2003XmlConverter, i got a Exception like this:
{http://schemas.microsoft.com/office/word/2012/wordml}dataBinding's @XmlElementDecl
is in org.docx4j.w15.ObjectFactory. I don't know why he can't find it.BTW, is there a chance to add a way to save as 97~2003 Doc format?
PS. Why
org.docx4j.convert.in.word2003xml.Word2003XmlConverter.getWordprocessingMLPackage()
is private?