Apparatus, method and machine-readable medium for facilitating generation of a markup language document containing identical sets of markup language elements
AssigneeResearch In Motion Limited
InventorTim Neil
Life of this patent
Estimating the term…
Abstract
From a markup language document (e.g. an Extensible Markup Language (XML) document expressed as a Document Object Model (DOM) tree) having a markup language element hierarchy containing a set of markup language elements and a plurality of references to the hierarchy, another markup language document (e.g. a textual XML document) is generated which contains one instance of the set of markup language elements for each of the plurality of references. The generated markup language document may otherwise have the same content as the original markup language document. Generation of a markup language document containing identical sets of markup language elements may thereby be simplified.
Claims15
An apparatus comprising:
- at least one processor;
- and
- a memory coupled to said at least one processor storing:
- a markup language document containing:
- a markup language element hierarchy having a parent markup language element and a contained set of markup language elements;
- and
- a plurality of references to said markup language element hierarchy, each of said plurality of references being a further markup language element having an attribute identifying said parent markup language element of said markup language element hierarchy;
- and
- machine-executable code which, when executed by the at least one processor, generates, from said markup language document, another markup language document containing one instance of said set of markup language elements for each of said plurality of references,
- wherein said parent markup language element has an attribute with a unique value, wherein said attribute of each said further markup language element identifies said parent markup language element by said unique attribute value, and wherein said generated markup language document lacks said parent markup language element.
A non-transitory machine-readable medium comprising:
- machine-executable code that, upon execution by a processor, generates, from a markup language document containing:
- a markup language element hierarchy having a parent markup language element and a contained set of markup language elements;
- and
- a plurality of references to said markup language element hierarchy, each of said plurality of references being a further markup language element having an attribute identifying said parent markup language element of said markup language element hierarchy,
- another markup language document containing one instance of said set of markup language elements for each of said plurality of references,
- wherein said parent markup language element has an attribute with a unique value, wherein said attribute of said further markup language element identifies said parent markup language element by said unique attribute value, and wherein said generated markup language document lacks said parent markup language element.
A method comprising:
- generating, from a markup language document containing:
- a markup language element hierarchy having a parent markup language element and a contained set of markup language elements;
- and
- a plurality of references to said markup language element hierarchy, each of said plurality of references being a further markup language element having an attribute identifying said parent markup language element of said markup language element hierarchy,
- another markup language document containing one instance of said set of markup language elements for each of said plurality of references,
- wherein said parent markup language element has an attribute with a unique value, wherein said attribute of said further markup language element identifies said parent markup language element by said unique attribute value, and wherein said generated markup language document lacks said parent markup language element.
Dependencies are inferred from the claim text.