Patent ID: 9582291
Date: 2017-02-28
CPC Classifications: G06F

Claim:
1. A generation apparatus that generates a mapping between individual properties included in an object in a program and individual elements of a structured document, the generation apparatus comprising: an object tree generation unit configured to generate a tree structure representing hierarchical structure of the object by assigning the individual properties included in the object to nodes of the tree structure; a selection unit configured to select a mapping minimizing conversion cost of converting the tree structure of the object to a tree structure that includes the individual elements of the structured document as its nodes; a document tree generation unit configured to generate a tree structure of the structured document from a schema describing hierarchical structure of the structured document; and a mapping generation unit that is configured to preferentially associate the child nodes in the tree structure of the object with the mandatory node (i) when a parent node on a side of the object, that includes child nodes in the tree structure of the object is associated with a parent node and (ii) on a side of the structured document that includes the optional nodes and the mandatory nodes in the tree structure of the structured document;