1. A document processing system comprising: a decision rule generation section for generating a decision rule for determining whether a document described in a structured language matches at least one of a plurality of structure type definitions on the basis of unique elements of the structure type definitions; and a determination section for determining whether the document to be processed matches at least one of the structure type definitions on the basis of the decision rule generated by said decision rule generation section.