Supercharge Your Innovation With Domain-Expert AI Agents!

Structured document encoder, method for encoding structured document and program therefor

Inactive Publication Date: 2005-06-02
SEIKO EPSON CORP
View PDF5 Cites 83 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

[0007] Accordingly, an object of the present invention is to provide a structured document encoder for generating an encoded representation of a structured document which can reduce processing steps for extracting information on a particular node in a tree structure defined in the structured document, and a method for encoding a structured document and a program therefor.
[0008] The present invention was conceived to solve the above-mentioned problems, and is directed to a structured document encoder for encoding a structured document which defines a tree structure including nodes having node content information including: a node identifier assigning unit for assigning a node identifier to each of the nodes; a node position information generator for generating node position information for each of the nodes, node position information of an given node from the nodes including at least an identifier of the given node, an identifier of a child node of the given node, and an identifier of a next sibling node which has the same parent node as the given node; and a structured document encoded representation generator for generating a structured document encoded representation by combining the node position information and the node content information of all of the nodes. In a structured document encoded representation generated by the above-mentioned structured document encoder, for each of the nodes in the tree structure defined by the structured document, both an identifier of a child node which facilitates finding the position of each node and an identifier of the next sibling node which has the same parent node as each node are stored. Thus, by using the structured document encoded representation, information related to the content of a particular node in the tree structure defined by the structured document, such as an element content, an element name, an attribute name, and an attribute value, can be easily obtained with fewer processing steps.
[0009] Furthermore, according to the present invention, the node position information generated by the node position information generator includes an identifier of a parent node. Therefore, information related to a parent node can be readily obtained from its child node with fewer processing steps.

Problems solved by technology

Therefore, extracting only information related to a second child node of a root node the encoded representation of the tree structure requires a lot of processing.
As a result, in order to extract information related to a particular node in the tree structure of the structured document from the encoded representation, another parsing processing should be carried out, which results in longer processing time.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Structured document encoder, method for encoding structured document and program therefor
  • Structured document encoder, method for encoding structured document and program therefor
  • Structured document encoder, method for encoding structured document and program therefor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] A structured document encoder according to one embodiment of the present invention will now be described with reference to the attached drawings.

[0020]FIG. 1 is a schematic diagram of a structured document encoder according to this embodiment. In this figure, reference numeral 1 denotes a structured document encoder which encodes structured documents. In this structured document encoder, reference numeral 11 denotes a structured document storage which stores encoded representations of structured documents, e.g., XML documents. Reference numeral 12 denotes a tree structure parser which parses a structured document to obtain a tree structure thereof. Reference numeral 13 denotes a node ID assigning unit for assigning a node ID to each of the nodes included in the tree structure obtained by the tree structure parser 12. Reference numeral 14 denotes a node position information generator which generates node position information. The node position information includes a node ID, ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A structured document encoder for encoding a structured document which defines a tree structure including nodes includes: a node identifier assigning unit for assigning a node identifier to each of the nodes; a node position information generator for generating node position information for each of the nodes, node position information of an given node from the nodes comprising at least an identifier of the given node, an identifier of a child node of the given node, and an identifier of a next sibling node which has the same parent node as the given node; and a structured document encoded representation generator for generating a structured document encoded representation by combining the node position information and the node content information of all of the nodes.

Description

[0001] Priority is claimed on Japanese Patent Application No. 2003-379913, filed Nov. 10, 2003, the content of which is incorporated herein by reference. BACKGROUND OF THE INVENTION [0002] 1. Field of the Invention [0003] The present invention relates to a structured document encoder for encoding information related to the structured document, and to a method for encoding a structured document and a program therefor. [0004] 2. Description of Related Art [0005] In a conventional encoding format used for encoding structured documents, e.g., XML documents, an encoder first parses a structured document to obtain a tree structure defined by a structured document. The encoder then encodes element names, attribute names, attribute values, and the like which represent nodes contained in the tree structure. The encoder separately encodes an element content of each of the nodes, and generates a structured document encoded representation by combining these encoded representations. One exemplar...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F7/00G06F17/21G06F17/30
CPCG06F17/30734G06F16/367
Inventor ISHII, NOBUTAKE
Owner SEIKO EPSON CORP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More