XML Style Corruption Removal via Package Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Custom styles in XML-based document files can lead to file corruption when copied from multiple documents, due to various document architecture-related issues, resulting in corruption of OOXML packages containing XML documents and style definitions.

Innovation Solution

A system and method for removing unused, duplicate, or corrupted styles from XML document files using system input/output components, analyzing information within the XML package to identify and correct corrupted parts, including style definitions and other incorrect file content, without requiring the activation of associated applications.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If custom styles are copied from multiple documents to enhance document functionality and formatting options, then the adaptability and versatility of the document is improved, but the reliability of the OOXML package deteriorates due to file corruption

Engineering Contradiction:
Improvedocument formatting optionsVSAvoidOOXML package integrity
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system performs preliminary analysis of the OOXML package to identify corrupt or problematic style definitions before they cause document corruption. By detecting and removing corrupt styles in advance, the system prevents the reliability issue from manifesting while preserving the ability to use custom styles for formatting.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system converts the harmful effect of corrupt style definitions into a benefit by using the corruption detection process to automatically identify and remove problematic styles. This transforms the potential harm of style copying into a useful cleanup mechanism that improves document reliability while maintaining formatting capabilities.

Inventive Principle:
Principle #22Blessing in disguise (Convert harm into benefit)

2Ease of operation

If multiple custom styles are added to documents to improve presentation capabilities, then the ease of operation for document formatting is improved, but the device complexity of the OOXML package increases, leading to corruption risks

Engineering Contradiction:
Improvedocument formatting efficiencyVSAvoidOOXML package structure
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The system extracts and removes corrupt or redundant style definitions from the OOXML package while preserving valid custom styles. This extraction process reduces the overall complexity of the package structure by eliminating problematic elements that contribute to corruption, while maintaining the ease of operation benefits from remaining custom styles.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system discards corrupt style definitions that cause package complexity issues and recovery errors. By selectively removing only the corrupt portions while preserving valid styles, the system reduces package complexity and eliminates corruption risks while maintaining document formatting capabilities.

Inventive Principle:
Principle #34Discarding and recovering

3Adaptability or versatility

If style definitions are copied from multiple sources to enhance document functionality, then the adaptability of the document is improved, but the loss of information occurs due to style conflicts and corruption

Engineering Contradiction:
Improvestyle definition varietyVSAvoiddocument content integrity
Core Design Contradiction:
Adaptability or versatilityVSLoss of information

Solution Approach 1:

The system implements a feedback mechanism that analyzes the OOXML package to detect style conflicts and corruption caused by copying styles from multiple sources. By providing feedback about corrupt styles and automatically removing them, the system prevents information loss while preserving the adaptability benefits of diverse style definitions.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS8281236B2Removing style corruption from extensible markup language documents
Publication Date: 2012.10.02 MICROSOFT TECHNOLOGY LICENSING LLC
  • US8281236B2 patent drawing
  • US8281236B2 patent drawing
  • US8281236B2 patent drawing

AI summary

Unused, duplicate, or corrupted styles are removed from XML based document files through a styles definition part of a document using system input output. The removal is based on the analysis of the information contained in a compressible package of a respective document file. Other incorrect file content may also be removed such as corrupted name ranges or unused value format definitions using the same approach.