×

Division program, combination program and information processing method

  • US 8,418,053 B2
  • Filed: 03/31/2006
  • Issued: 04/09/2013
  • Est. Priority Date: 12/28/2005
  • Status: Active Grant
First Claim
Patent Images

1. An apparatus for dividing information contained in a first structured document into a plurality of second structured documents, comprising:

  • a storage device to store the first structured document and the plurality of second structured documents; and

    a central processing unit connected to the storage device via a bus, wherein the central processing unit is configured to;

    obtain a content of the first structured document sequentially line by line beginning from the head;

    when the obtained content includes a start tag and there is no record between the start tag and an end tag corresponding to the start tag, store a tag name of the start tag by pushdown into a stack and copy a tag name of the start tag of the obtained content into a first output file different from the first structured document;

    when the obtained content includes a start tag and there is a record between the start tag and the end tag corresponding to the start tag, copy an element relating to the record at an end of the first output file;

    add an identifier end tag indicating a position corresponding to a record count value to determine a dividing position in accordance with a number of the record as the dividing position, generate an additional end tag corresponding to the start tag of the first output file by using the start tag stored in the stack, and add the additional end tag after the identifier end tag of the first output file;

    after generating the first output file, generate an additional start tag corresponding to the additional end tag in the first output file by using the start tag stored in the stack, and add an identifier start tag corresponding to the identifier end tag of the first output file;

    when the content obtained from the first structured document includes the element relating to the record, copy the content indicating the element relating to the record to the second output file;

    when the content obtained from the first structured document includes an end tag, popup a name of a tag of the first tag stored in the stack, and copy the obtained end tag at an end of the second output file; and

    when a root tag of the first structured document matches the end tag, terminate dividing processing, and generate the plurality of second structured documents.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×