This project has moved. For the latest updates, please go here.

OpenOffice Writer Compatibility & XML Parsing Error

Feb 5, 2015 at 5:59 PM
I am using DocX to create a docx with bookmarks, then using OpenOffice Writer to Export to PDF, converting bookmarks to named destinations, so that a program can launch Acrobat Reader to a particular place within the PDF.

For the most part, this works real well. However, I am experiencing only one small issue.

The saved document seems to be a Word 2007 docx. It opens in Word 2013 perfectly.

However, Open Office Writer fails to open the file with a general i/o error.

If I open and save the file from within Word - either maintaining compatibility or upgrading the version, Open Office Writer opens the file properly.

Does anyone have any insight as to what the problem might be?

In the web pages, it is mentioned that DocX can create 2007 and 2010 versions of DocX, but I can not seem to find a way to force the version to 2010 when I save the document. Is there a way to target 2007 versus 2010?

I opened the dock with Oxygen XML Editor...

The Oxygen XML Editor does indicate parsing problems with this file.

At the first instance of <w:p>:
E [Jing] cvc-complex-type.2.4.d: Invalid content was found starting with element 'w:p'. No child element is expected at this point.

Then, inside a bookmark:
E [Jing] cvc-complex-type.3.2.2: Attribute 'w:name' is not allowed to appear in element 'w:bookmarkEnd'.

Maybe that information can shed some light on the problem.