1. A method to generate an effective schema of an electronic document for optimizing the processing thereof, comprising: performing a programmatic analysis to determine all required portions of the electronic document; generating an optimized document model; and specializing a document processing program against the optimized document model.