接下来,解析修改的列表,生成已经修改和删除的文件的列表(见清单6)。
Next, the list of changes is parsed and a list of the files that have been changed and deleted is generated (see Listing 6).
这种在解析期间修改文档结构的做法可以使 DOM 树占用更少的内存,而且还可以减少在内存中遍历和修改文档时所花的时间。
Such modifications of the document structure during parsing can result in a smaller memory footprint for the DOM tree, and also reduce the time spent traversing a document and modifying it in memory.
目前,开发者需要修改清单5中样本解析代码以达到自己的目的。
Currently, developers need to modify the sample parsing code in Listing 5 for their own purposes.
应用推荐