1. A computer-implemented method for correcting an XML electronic document, the XML electronic document having a structure, the method comprising: identifying a validation error in the XML electronic document structure, the validation error being an aspect of the XML electronic document structure that fails to conform to rules of an XML document type definition or an XML schema, the rules being associated with the XML electronic document, the validation error being of a particular kind, wherein identifying the validation error includes building a deterministic finite automation from a content model defined in a document type definition of the XML electronic document and identifying the validation error using the deterministic finite automaton; selecting a suggestion template from among multiple suggestion templates according to the particular kind of the validation error, and using the selected suggestion template to suggest to a user suggested corrections that are predefined in the template for the particular kind of validation error, the selected suggestion template including logic necessary for modifying the XML electronic document structure in conformance with the rules of the XML document type definition or the XML schema, wherein modifying the XML electronic document structure comprises retagging an element in the XML electronic document structure and moving an element from a current location to a new location in the XML electronic document structure; receiving an input selecting one of the suggested corrections; and using the logic in the selected suggestion template to apply the correction selected by the input to the XML electronic document.