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