Removing style corruption from extensible markup language documents
AssigneeMicrosoft Corporation
InventorSergei Gundorov
Life of this patent
Estimating the term…
Abstract
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.
Claims20
A method executed at least in part in a computing device for removing style corruption from extensible markup language (XML) based documents, the method comprising:
- reading style information associated with an XML based document;
- determining at least one from a set of unused, corrupted, and duplicate styles by matching style definitions for the document with style parts in a document package;
- and
- removing the unused, corrupted, and duplicate styles without opening the XML based document in a rich application associated with the XML based document.
A computing device for removing style corruption from extensible markup language (XML) documents, the computing device comprising:
- a memory
- a processor coupled to the memory, the processor executing a module in conjunction with instructions stored in the memory, wherein the module is configured to:
- determine whether a document package including an XML based document to be examined is a valid XML based package;
- read a style information associated with the XML based document;
- determine at least one from a set of unused, corrupted, and duplicate styles by matching style definitions for the XML based document with style parts in a document package;
- and
- remove the unused, corrupted, and duplicate styles without opening the XML based document in a rich application associated with the XML based document.
A computer-readable storage medium with instructions stored thereon for removing style corruption from extensible markup language (XML) documents, the instructions comprising:
- determining whether a document package including an XML based document to be examined is a valid XML based package;
- reading a style information associated with the XML based document;
- determining whether the XML based document has more than a predetermined number of custom styles;
- reverting the XML based document to a default format by removing all custom styles if the XML based document has more than the predetermined number of custom styles;
- else
- determining at least one from a set of unused, corrupted, and duplicate styles by matching style definitions for the XML based document with style parts in a document package;
- and
- removing the unused, corrupted, and duplicate styles without opening the XML based document in a rich application associated with the XML based document.
Dependencies are inferred from the claim text.