Listing 4 shows a code fragment demonstrating the normal DOM parsing procedure.
清单4中的代码段说明了一般的DOM解析过程。
The same is true when you use JAXP for DOM parsing which provides an even easier DOM-to-SAX layering of APIs.
使用JAXP进行DOM解析时也同样如此,提供了一种更为简便的 DOM 到SAX的 API 分层。
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树占用更少的内存,而且还可以减少在内存中遍历和修改文档时所花的时间。
Wouldn't it make more sense to manipulate the DOM directly using a parsing framework?
这样看来,通过一个解析框架来操纵此 DOM不是更有意义么?
Dealing with an XML response is quite different than dealing with plain text and involves parsing, the Document Object Model (DOM), and several other considerations.
处理XML响应和处理普通文本有很大不同,涉及到解析、文档对象模型(DOM)和其他一些问题。
Now keep in mind that JAXP is not a true parsing API on its own, in the sense that it requires a SAX or DOM parser to operate.
现在我们需要记住,JAXP本身并不是一个真的解析api(在需要SAX或DOM解析器运作的情况下)。
Because you don't need the DOM to build the output, you don't need a complex parsing process to generate the UI elements.
由于无需使用DOM构建输出,因此也不必使用复杂的解析过程来生成ui元素。
As a final note on HTML parsing, you reviewed how to use the DOM extension solely for the purpose of converting back into SimpleXML, for a unified interface to all XML-like languages.
关于HTML解析的最后一点说明是,对于所有xml类语言的一个统一接口,您复习了如何只使用DOM扩展将HTML转换回SimpleXML。
The Crimson DOM example code in Listing 3 USES the JAXP interface for parsing.
清单3中的CrimsonDOM示例代码使用了用于语法分析的JAXP接口。
The application code used for parsing the XML in the DOM parser and composing the insert SQL statement is replaced with the following code
用来在DOM解析器中解析XML并合成insertSQL语句的应用程序代码被替换为以下代码
The other form of XML parsing is DOM (Document object model) -based, which forms an in-memory object model of the full XML structure.
xml解析器的另一个形式是基于DOM (DocumentObjectModel)的,它形成了完整XML结构的内存中的对象模型。
The XML DOM API is a standard XML-parsing API, and it is the most commonly used when programming XML applications.
XMLDOMAPI是一个标准的xml解析api,而且它最常用于编写XML应用程序。
The DOM specification covers all types of manipulations of a document representation, but it does not cover issues such as parsing a document and generating text output.
DOM规范涵盖了文档表示的所有类型的操作,但是它没有涉及例如对文档的语法分析和生成文本输出这样的问题。
The main purpose of semantic tags is to re-use the normal content of an HTML document, and to annotate it with meta-information that is evaluated during Document Object Model (DOM) parsing.
语义标签的主要目的是再使用HTML文件的正常内容,并使用在DocumentObjectModel(DOM)分析期间评价的源信息对其进行注解。
Parsing can then occur, and the resultant DOM Document object is handed off to a method that prints the DOM tree.
然后,就可以进行语法分析了,产生的DOMDocument对象传递给打印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树中提取信息看成两个独立的过程,制约了提取信息的速度。
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树中提取信息看成两个独立的过程,制约了提取信息的速度。
应用推荐