1. 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; removing at least one from the set of the unused, corrupted, and duplicate styles without opening the XML based document in a rich application associated with the XML based document; determining corrupted name ranges; and removing the corrupted name ranges from the XML based document.
1. 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; removing at least one from the set of the unused, corrupted, and duplicate styles without opening the XML based document in a rich application associated with the XML based document; determining corrupted name ranges; and removing the corrupted name ranges from the XML based document. 8. The method of claim 1 , further comprising: removing the unused, corrupted, and duplicate styles automatically.