Since the user is not using a tree-based object model to access this part of the document, constructing the entire tree would lead to a waste of memory due to replication of data.
因为用户不使用基于树的对象模型来访问这部分文档,所以构造完整的树会因为数据重复而浪费内存。
Start by constructing an ordinary document entry
首先构造一个常规的文档条目
As you can see in Listing 6, dom4j USES a factory approach for constructing objects included in the document representation built from a parse.
正如您在清单6中看到的,dom 4 j使用一个工厂方法来构造文档表示(从语法分析构建)中包含的对象。
应用推荐