Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not render CustomXmlPart inserted by Chem4Word #1

Open
MikeWilliams-UK opened this issue Mar 16, 2023 · 1 comment
Open

Does not render CustomXmlPart inserted by Chem4Word #1

MikeWilliams-UK opened this issue Mar 16, 2023 · 1 comment

Comments

@MikeWilliams-UK
Copy link

MikeWilliams-UK commented Mar 16, 2023

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant