1. A method for generating one or more candidates for a structure pattern pointing to an element or an element set in a structured document, the method comprising the steps of: preparing document logical structure information about the structured document and conditions and indexes for display for giving selection criteria to a user; accepting said structure pattern pointing to an element or an element set in said structured document specified by the user, wherein said structure pattern is comprised of one or more items; determining an item to be edited among the one or more items; generating one or more structure pattern candidates by replacing said item to be edited with items in different expressions based on said document logical structure information; and rearranging said generated one or more structure pattern candidates based on said condition and index for display to generate a structure pattern candidate list.