davecra / OpenXmlFileViewer

A file viewer for Office files. Allows for easy open/edit of the XML components in an OpenXML document.
MIT License
21 stars 5 forks source link

Does not render CustomXmlPart inserted by Chem4Word #1

Open MikeWilliams-UK opened 1 year ago

MikeWilliams-UK commented 1 year ago

Using Chem4Word insert a chemical structure (Chem4Word is at https://github.com/Chem4Word/Version3-2) Save the document and close word. Open the document using OpenXmlFileViewer Click on item1.xml in the tree view

The xml for the inserted chemistry is not displayed correctly in the read tab image

The xml is shown correctly in the Edit tab image

At this moment I am not sure if Chem4Word or OpenXmlFileViewer is at fault

MikeWilliams-UK commented 1 year ago

If I edit the xml then save the file with your UI it shows corectly and still works in Chem4Word. Still not sure if we or you are at fault here

Files renamed to .zip show differences in xml data image On the left hand side is our original on the right hand side is a file after editing in your UI Looks like the edit tab is adding the xml header during save