Patent ID: 8667388

Claim:
An information processing method comprising: selecting a character string; specifying, with respect to the selected character string, a first element from among elements defined by a document structure definition controlling a document into which the selected character string is inserted; specifying within the document an insertion destination as a position in which the selected character string is to be inserted; and determining in accordance with the document structure definition whether the specified first element is able to have a character string as an element, searching the document structure definition for a second element that is lower than the first element and is able to have a character string as an element if the first element is not able to have a character string as an element, generating the second element having the selected character string, searching the document structure definition for an element to be inserted between the first element and the second element, generating an insertion element by interpolating between the first element and the second element the element to be inserted, and shifting the insertion element to the specified insertion destination.