1. A structured document management apparatus comprising: a document data accepting unit that accepts input of structured document data having a hierarchical logic structure; a structure guide data storage unit that stores structure guide data which is a summary of hierarchical structure information of the structured document, wherein the structure guide data contains a guide node where unique identification information is allocated; a structure stream converting unit that executes a syntax analysis of the structured document data, and converts the structured document data into structure stream data as one-dimensional sequence data by arranging the unique identification information of guide nodes corresponding to nodes that pass when depth-prioritized tracing is performed from a route node of the structured document data using the structured guide data; a structure stream data storage unit that stores the structure stream data; a query data accepting unit that accepts input of query data; a path pattern compile unit that creates a path pattern processing table which specifies a processing procedure specialized for the query data by executing a syntax analysis of the accepted query data and creating a primary structure graph in which a relationship between tags is expressed by a tree format, and collating the primary structure graph and the structured guide data, converting the primary structure graph and the structured guide data into the unique identification information, and creating a secondary structure graph where unnecessary nodes are removed, the path pattern processing table including: an Entry Table which has a sequence element corresponding to the unique identification information and executes a process corresponding to the unique identification information; a Place which is a storage area for holding a queue of Tokens as intermediate data, the Place representing a position of the unique identification information; and a Trans which connects one Place and another Place and flows a Token held at a high-order Place to a low-order Place, the path pattern processing table being created by pasting the process corresponding to the unique identification information of the Entry Table and linking the Place and the Trans recursively from the route node to a terminal node of the secondary structure graph; and a structure stream scanning unit that acquires the structure stream data from the structure stream data storage unit, and gives the structure stream to the path pattern processing table so as to execute the processing procedure.
4. The apparatus according to claim 1 , wherein the path pattern compile unit incorporates a procedure for skipping a portion of the structure stream data in the path pattern processing table when the structure information appears due to statistics information of the structured document data.