A Pushdown Machine for Recursive XML Processing
A Pushdown Machine for Recursive XML Processing
复制标题
用于递归 XML 处理的下推机
DOI:
10.1007/11924661_21
复制
发表时间:
2006
期刊:
影响因子:
--
通讯作者:
Shin
中科院分区:
文献类型:
--
作者:
Keisuke Nakano;Shin
XML transformations are most naturally defined as recursive functions on trees. A naive implementation, however, would load the entire input XML tree into memory before processing. In contrast, programs in stream processing style minimise memory usage since it may release the memory occupied by the processed prefix of the input, but they are harder to write because the programmer is left with the burden to maintain a state. In this paper, we propose a model for XML stream processing and show that all programs written in a particular style of recursive functions on XML trees, themacro forest transducer, can be automatically translated to our stream processors. The stream processor is declarative in style, but can be implemented efficiently by a pushdown machine. We thus get the best of both worlds — program clarity, and efficiency in execution.
DOI:
--
发表时间:
2008
期刊:
Journal of Functional Programming (出版決定)
影响因子:
--
作者:
Koichi Kodama;Kohei Suenaga and Naoki Kobayashi
通讯作者:
Kohei Suenaga and Naoki Kobayashi