Many programming languages represent XML as a DOM tree.
许多编程语言将XML表示为dom树。
Our last step is to deliver the requested part of the DOM tree back to the user.
最后一步是将被请求的dom树部分发送给用户。
Listing 1 is a sample XML document while Figure 1 is the corresponding DOM tree.
清单1是一个示例XML文档,图1是相应的dom树。
For example, default attributes can appear in a DOM tree or new SAX events can occur as a result of validation.
比如,dom树中可能出现默认属性,或者作为验证结果出现新的SAX事件。
The first step in working with XPath is to read the target XML document in as a DOM tree, as shown in Listing 3.
使用XPath 的第一步是将目标XML文档作为DOM树读入,如 清单3 所示。
Creating a DOM tree from scratch results in a higher peak working set than loading the same document from disk.
在内存中临时创建一个DOM树比从磁盘上载入同样的文档会产生更高的工作空间峰值。
Parsing can then occur, and the resultant DOM Document object is handed off to a method that prints the DOM tree.
然后,就可以进行语法分析了,产生的DOMDocument对象传递给打印dom树的方法。
The main task of XMLizing is to parse the source and construct a DOM tree according to the source file definition.
XML化的主要任务是解析源文件,根据源文件定义构造DOM树。
The DOM layer provides a foundation for constructing the DOM tree that is compliant with the ODF standard specification.
dom层为构造符合ODF标准规范的dom树提供基础。
Then the prepared HTML code is added to the DOM tree, which triggers the Dojo parser to render the new fragment of the page.
然后将准备好的HTML代码添加到DOM树,从而触发Dojo解析器呈现页面的新片段。
The AST is a tree representation of the parsed source code, created by the compiler, similar to the DOM tree model of an XML file.
AST代表已解析源代码的树,它由编译器创建,与XML 文件的DOM 树模型类似。
Walking the DOM tree for the first time has an impact on the working set metric because some nodes in the tree are created on demand.
在第一次遍历DOM树时,对工作空间这个度量指标会有一定的影响,因为树中有些节点会被创建。
Selecting on a node will not only highlight it in the rendered page and the DOM tree, but also in the MVC source code that created it.
选定一个节点,不仅会让它在渲染后的页面和DOM树中突出显示,而且还会在创建它的MVC源代码文件中突出显示。
Listing 5 shows code to create a DOM tree of an XML document, and the steps are very similar, even though the class and method names change.
清单5展示了创建XML文档的dom树的代码,步骤与清单4非常相似,但其中的类和方法名称发生了变化。
When the correct node is found, regardless of the number of parents up the DOM tree it is, the node is returned and the highlighting removed.
当找到正确的节点时,无论DOM树中的父节点有多少个,都返回节点并删除高亮显示。
Be mindful of repaints and reflows; batch style changes, manipulate the DOM tree "offline," and cache and minimize access to layout information.
注意重绘和重排版;批量修改风格,离线操作DOM树,缓存并减少对布局信息的访问。
One such enhancement is the (currently beta) cDomlette module, which can build a complex DOM tree much faster than PyXML's default DOM implementation.
其中一个增强是(目前是测试版)cDomlette模块,在构建复杂DOM树方面,它的速度比PyXML 的缺省 DOM 实现快得多。
CDomlette is potentially a much faster way of building a DOM tree, but it is currently beta, and might not be entirely API-compatible with other modules.
cDomlette可能是一种更快的构建dom树的方法,但目前是测试版,并且可能不能与其它模块完全api兼容。
So far you've heard that browsers turn a Web page into an object representation and maybe you've even guessed that the object representation is a DOM tree.
到目前为止,您已经知道浏览器将Web页面转换为对象表示,可能您甚至会猜想,对象表示是dom树。
You can also construct a DOM tree yourself, and convert it to XML; this is often a more flexible way of producing XML output than simply writing... to a file.
您也可以自己构造一棵dom树,然后将它转换成xml;用这种方法生成XML输出比仅将…写入文件的方法更灵活。
If you insist on testing your application in Safari, you can turn on the Safari Debug menu, which allows you to inspect the DOM tree, CSS, the cache, and so on.
如果您坚持在Safari中测试应用程序,那么可以打开SafariDebug菜单,通过该菜单可以查看dom树、CSS和缓存等。
Finding an element based on its ID, element type, or CSS class name is very useful, but what if you want to find an element based on its position in the DOM tree.
根据ID、元素类型或CSS类名查找元素非常有用,但如何根据元素在 DOM 树中的位置执行查找呢?
However, this method separates the two processes of parsing and extracting and therefore restricts the speed. Actually, parsing the whole DOM tree is unnecessary.
这种传统方法将解析dom树和从DOM树中提取信息看成两个独立的过程,制约了提取信息的速度。
Based on the analysis of information extraction process and the structure of product web page, a product information extraction model based on DOM tree is established.
在分析信息抽取过程和商品网页结构的基础上,构建了基于网页DOM树的商品供应信息抽取模型。
The render tree has at least one node for every node of the DOM tree that needs to be displayed (hidden DOM elements don't have a corresponding node in the render tree).
渲染树中为每个需要显示的DOM树节点存放至少一个节点(隐藏DOM元素在渲染树中没有对应节点)。
Next, let's examine some important scenarios associated with the Document Object Model (DOM) -including loading, saving, walking a DOM tree, and creating a new DOM tree in memory.
接下去,让我们讨论一些在文档对象模型(DOM)中很重要的场景,包括载入,保存,遍历DOM树和在内存中创建一个新的DOM树。
In line 13, the bind_ callback method from the class zk.Widget is overridden to run the update() method and set the first list item as the selected one after the listbox is bound to the DOM tree.
第 13行,来自类zk.Widget的 bind_callback方法被重写来运行update() 方法,在listbox被绑定到DOM树之后,设置列表第一项作为选中项。
In fact, your browser spends far more time converting your Web page into a DOM tree (a tree-like organization of nodes) and rendering those nodes visually than it does loading an external text file.
事实上,浏览器将Web页面转换为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.
这种在解析期间修改文档结构的做法可以使 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.
这种在解析期间修改文档结构的做法可以使 DOM树占用更少的内存,而且还可以减少在内存中遍历和修改文档时所花的时间。
应用推荐