i use the docx4j-api to merge docx-files. the docx-files are dynamic generated by an engine and i suspect the engine is using elements which are not defined in the xsd. (edit: or rather not in the right context)
document.xml snippet:
- Code: Select all
<w:t>Salutation,<w:br/><w:br/>Text</w:t>
warning:
- Code: Select all
WARN JaxbValidationEventHandler - [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/wordprocessingml/2006/main", local:"br"). Expected elements are <{ }text>
INFO JaxbValidationEventHandler - continuing (with possible element/attribute loss)
the result is element loss . is there any way to handle this?
thanks
nrg