因为用户不使用基于树的对象模型来访问这部分文档,所以构造完整的树会因为数据重复而浪费内存。
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.
在 DOM 中,文档被模型化为一棵树,其中每个 XML 语法成分(如元素和文本内容)都用一个节点表示。
In DOM, the document is modeled as a tree, where each component of the XML syntax (such as an element or text content) is represented by a node.
文档对象模型为XML文档指定了树型表示。
The document Object Model specifies a tree-based representation for an XML document.
应用推荐