Bug 156247

Summary: Add OPC and XML validity check at import/export of OOXML files
Product: LibreOffice Reporter: Tomaz Vajngerl <quikee>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: aron.budea, buzea.bogdan, mentoring
Priority: medium Keywords: difficultyInteresting, easyHack
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 143781    

Description Tomaz Vajngerl 2023-07-12 04:37:05 UTC
When we import or export a OOXML file it would be good to check (in debug mode) the validity of the document's OPC[1] structure (declared relationship actually exists for exmaple) and XML file validity (presence of the XML namespaces declaration that is used in tags for example). 

The goal of this EasyHack is to implement this functionality that checks this and trigger it on import and export of files in debug mode (and maybe when an environment variable is set in non-debug mode). 


[1] https://en.wikipedia.org/wiki/Open_Packaging_Conventions