Pruning DOM Trees for Structured Document Processing
Pruning DOM Trees for Structured Document Processing
复制标题
修剪 DOM 树以进行结构化文档处理
DOI:
10.11309/jssstconference.21.0.43.0
复制
发表时间:
2004
影响因子:
3.1
通讯作者:
教雄 大島
中科院分区:
文献类型:
--
作者:
康史 林;振江 胡;正人 武市;伸明 和家;雅文 原;教雄 大島
PSD (Programmable Structured Document) is a framework in which structured documents are edited efficiently and safely by evaluating embedded expressions in themselves. The PSD processing system we are currently developing requires an external evaluator to get the DOM data of documents held in the editor. In this work, a method to prune DOM trees is proposed to improve the performance of document manipulations by avoiding unnecessary data communication between the editor and the external evaluator. Based on information about references given by the user, it generates a pruned DOM tree, eliminating unnecessary parts for the evaluation from the original DOM tree. The mechanism of tree pruning is explained and its efficiency is evaluated using examples.