摘要:
A computer-implemented method of parsing markup-language source data is described. The markup-language source data comprises a plurality of elements. A first portion of the elements is processed by interoperating with a symbol table to determine unique string objects associated with the elements of the first portion of the elements. A structure is recorded associated with the first portion of the elements collectively, including the determined unique string objects in association with the corresponding elements of the first portion. A second portion of the elements is processed, using the structure determined associated with the first portion of the elements, to determine the unique string objects associated with the elements of the second portion, without interoperating with the symbol table.
摘要:
A markup language parser processes markup language data and provides processed data to an application. A reader is configured to tokenize the markup language data and store resulting tokens in a buffer associated with the reader. A scanner is configured to create string objects based on the tokens and to provide the created string objects to an application. The scanner is further configured to determine a need by the application for the string objects. For each at least some of the string objects created by the scanner, the scanner is configured to selectively create those string objects based on a determination of the need by the application for the string objects.
摘要:
A markup language parser processes markup language data and provides processed data to an application. A reader is configured to tokenize the markup language data and store resulting tokens in a buffer associated with the reader. A scanner is configured to create string objects based on the tokens and to provide the created string objects to an application. The scanner is further configured to determine a need by the application for the string objects. For each at least some of the string objects created by the scanner, the scanner is configured to selectively create those string objects based on a determination of the need by the application for the string objects.
摘要:
A computer-implemented method of parsing markup-language source data is described. The markup-language source data comprises a plurality of elements. A first portion of the elements is processed by interoperating with a symbol table to determine unique string objects associated with the elements of the first portion of the elements. A structure is recorded associated with the first portion of the elements collectively, including the determined unique string objects in association with the corresponding elements of the first portion. A second portion of the elements is processed, using the structure determined associated with the first portion of the elements, to determine the unique string objects associated with the elements of the second portion, without interoperating with the symbol table.