Markup-language document formatting in memory-constrained environment
First Claim
1. A method of parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said method including the steps of:
- for a current one of said nodes, freeing memory occupied by any previously formatted one of said nodes upon which formatting of said current node, according to a set of formatting rules, is independent; and
building a partial document tree using the current node and remaining previously formatted nodes upon which formatting of said current node, according to said set of formatting rules, is dependent.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods (600, 700, 900), apparatuses and computer program products are disclosed for parsing and formatting a document encoded using a markup language in a memory-constrained environment. The structure (100) of the document is represented by a tree having one or more nodes (n1-n10). One method (600) includes the steps of, for a current one of the nodes, freeing memory occupied by any previously formatted one of the nodes upon which formatting of the current node, according to a set of formatting rules, is independent; and building a partial document tree (500) using the current node and remaining previously formatted nodes upon which formatting of the current node, according to the set of formatting rules, is dependent. Another method includes the steps of obtaining information about one or more nodes of the document using a lookahead parser, and formatting the one or more nodes using the obtained information.
-
Citations
21 Claims
-
1. A method of parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said method including the steps of:
-
for a current one of said nodes, freeing memory occupied by any previously formatted one of said nodes upon which formatting of said current node, according to a set of formatting rules, is independent; and
building a partial document tree using the current node and remaining previously formatted nodes upon which formatting of said current node, according to said set of formatting rules, is dependent. - View Dependent Claims (4, 5, 6, 7)
-
-
2. A method of parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said method including the steps of:
-
obtaining information about one or more nodes of said document using a lookahead parser;
formatting said one or more nodes using said obtained information.
-
-
3. A method of parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said method including the steps of:
-
for a current one of said nodes, freeing memory occupied by any previously formatted one of said nodes upon which formatting of said current node, according to a set of formatting rules, is independent;
building a partial document tree using the current node and remaining previously formatted nodes upon which formatting of said current node, according to said set of formatting rules, is dependent;
obtaining information about one or more nodes of said partial document tree using a lookahead parser; and
formatting said one or more nodes using said obtained information.
-
-
8. An apparatus for parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said apparatus including;
-
means for, for a current one of said nodes, freeing memory occupied by any previously formatted one of said nodes upon which formatting of said current node, according to a set of formatting rules, is independent; and
means for building a partial document tree using the current node and remaining previously formatted nodes upon which formatting of said current node, according to said set of formatting rules, is dependent. - View Dependent Claims (11, 12, 13, 14)
-
-
9. An apparatus for parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said apparatus including:
-
means for obtaining information about one or more nodes of said document using a lookahead parser;
means for formatting said one or more nodes using said obtained information.
-
-
10. An apparatus for parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said apparatus including:
-
means for, for a current one of said nodes, freeing memory occupied by any previously formatted one of said nodes upon which formatting of said current node, according to a set of formatting rules, is independent;
means for building a partial document tree using the current node and remaining previously formatted nodes upon which formatting of said current node, according to said set of formatting rules, is dependent;
means for obtaining information about one or more nodes of said partial document tree using a lookahead parser; and
means for formatting said one or more nodes using said obtained information.
-
-
15. A computer program product having a computer readable medium having a computer program recorded therein for parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said computer program product including:
-
computer program code means for, for a current one of said nodes, freeing memory occupied by any previously formatted one of said nodes upon which formatting of said current node, according to a set of formatting rules, is independent; and
computer program code means for building a partial document tree using previously formatted nodes upon which formatting of said current node, according to said set of formatting rules, is dependent. - View Dependent Claims (18, 19, 20, 21)
-
-
16. A computer program product having a computer readable medium having a computer program recorded therein for parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said computer program product including:
-
computer program code means for obtaining information about one or more nodes of said document using a lookahead parser;
computer program code means for formatting said one or more nodes using said obtained information.
-
-
17. A computer program product having a computer readable medium having a computer program recorded therein for parsing and formatting a document encoded using a markup language, the structure of said document represented by a tree having one or more nodes, said computer program product including:
-
computer program code means for, for a current one of said nodes, freeing memory occupied by any previously formatted one of said nodes upon which formatting of said current node, according to a set of formatting rules, is independent;
computer program code means for building a partial document tree using the current node and remaining previously formatted nodes upon which formatting of said current node, according to said set of formatting rules, is dependent;
computer program code means for obtaining information about one or more nodes of said partial document tree using a lookahead parser; and
computer program code means for formatting said one or more nodes using said obtained information.
-
Specification