Maarten wrote:1. Consistently repeatable: At a certain point in the XML, we can no longer drag the nodes into the word file. Every XML leaf up to and including "/group/resourceusetree/events/event/name" can be dragged. Everything beyond that is results in unbound controls. Both data and repeats.
Any attempt to clean up, modify, change line endings, etc. and replacing the xml of the docx file has had no result. We can recreate this problem on different installations.
Strangely, it seems to be related to the docx file itself. creating a blanc new docx file and trying the bindings again works as intended.
Note: Original file (attached) was created using a Dutch + Belgian Office installation. The working docx was created later using an English Office installation.
Maarten wrote:2. Trying a repeat in a repeat in a repeat, I caused Word to crash. Since then, this file is no longer usable. I can't use this file to generate an interred & bound docx/pdf using docx4j no more. Some diagnostics in both the authoring tool and docx4j would be nice.
Note: Original file (attached) was created using English Office.
Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Failed to getPart
... 10 more
Caused by: org.docx4j.openpackaging.exceptions.Docx4JException: Problems parsing InputStream for part /null
... 12 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
... 13 more
Manually deleting the duplicate entry fixes the problem. I haven't looked into how the duplicate entries may have arisen. Do you recall whether you used both authoring tools to create this docx, or just the friendly drag/drop one?
Your customXml/item4.xml is blank.
Maarten wrote:5. Add-in feedback: It would be nice to not only have the inspection of the XML, but also a generated DOCX based on the internal (or supplied) XML. This to be able to test the repeats. Using advanced repeats in conjunction with tables does require "live" previews to be able to debug. My take on this is that it doesn't have to run in a web service, but could just open up a generated (inserted and bound) docx file in Word itself.
Users browsing this forum: Google [Bot] and 47 guests