Transformation of Source Data in a Source Markup Language to Target Data in a Target Markup Language
AssigneeOracle International Corporation
InventorIndroniel Roy
Life of this patent
Estimating the term…
Abstract
Transforming source data in a source markup language to target data in a target markup language using transformation rules mapping source tags to corresponding target tags. In an embodiment, the tags in the source data (e.g., XML) are retrieved sequentially (e.g., by SAX parser) and hierarchical memory objects (e.g., DOM objects) are created for a source tag matching a transformation rule immediately upon reading the source tag. A portion of the target data corresponding to the source tag is then generated from the hierarchical memory objects. The hierarchical memory object may be removed from the memory once the corresponding portion of the target data is generated. As a result, the memory requirements may be reduced.
Claims20
A method of transforming a source data in a source markup language to target data in a target markup language, said source data containing a plurality of source tags belonging to said source markup language, said method comprising:
- receiving said source data and a set of transformation rules, wherein each of said set of transformation rules maps a corresponding one of said plurality of source tags to a corresponding one of a plurality of target tags, said plurality of target tags belonging to said target markup language;
- reading a next source tag from said source data;
- determining a mapping transformation rule defining a mapping of said next source tag upon reading said next source tag, wherein said mapping transformation rule is contained in said set of transformation rules;
- constructing a hierarchy of memory objects representing a content of said next source tag upon determining said mapping transformation rule;
- and
- generating said target data based on said mapping transformation rule and said hierarchy of memory objects.
A computer readable medium carrying one or more sequences of instructions for causing a system to transform a source data in a source markup language to target data in a target markup language, said source data containing a plurality of source tags belonging to said source markup language, wherein execution of said one or more sequences of instructions by one or more processors contained in said system causes said one or more processors to perform the actions of:
- receiving said source data and a set of transformation rules, wherein each of said set of transformation rules maps a corresponding one of said plurality of source tags to a corresponding one of a plurality of target tags, said plurality of target tags belonging to said target markup language;
- reading a next source tag from said source data;
- determining a mapping transformation rule defining a mapping of said next source tag upon reading said next source tag, wherein said mapping transformation rule is contained in said set of transformation rules;
- constructing a hierarchy of memory objects representing a content of said next source tag upon determining said mapping transformation rule;
- and
- generating said target data based on said mapping transformation rule and said hierarchy of memory objects.
A system transforming a source data in a source markup language to target data in a target markup language, said source data containing a plurality of source tags belonging to said source markup language, said system comprising:
- means for receiving said source data and a set of transformation rules, wherein each of said set of transformation rules maps a corresponding one of said plurality of source tags to a corresponding one of a plurality of target tags, said plurality of target tags belonging to said target markup language;
- means for reading a next source tag from said source data;
- means for determining a mapping transformation rule defining a mapping of said next source tag upon reading said next source tag, wherein said mapping transformation rule is contained in said set of transformation rules;
- means for constructing a hierarchy of memory objects representing a content of said next source tag upon determining said mapping transformation rule;
- and
- means for generating said target data based on said mapping transformation rule and said hierarchy of memory objects.
Dependencies are inferred from the claim text.