cstkingkey / docx-rs

A Rust library for parsing and generating docx files.
MIT License
12 stars 12 forks source link

Add support for App with standard AP namespace #20

Closed Murad-Awad closed 3 months ago

Murad-Awad commented 3 months ago

This is a weird one, there are valid docx files that contain an extra xml namespace called ap:, this is a standard openxml thing. In practice I've seen this as a result of taking docx files that are saved in sharepoint. The object is the same as the original App, so we may want to move to an approach that implements XmlRead from scratch to optionally serialize either from ap:Properties or Properties depending on what exists. An example docx file where serialization failed is attached. old_doc_format.docx