Many programming languages represent XML as a DOM tree.
许多编程语言将XML表示为dom树。
Always read XML from users using a DOM library or SAX parser.
应当一直用dom库或SAX解析器读取来自用户的XML。
A DOM Tree Alignment Model for Mining Parallel Data from the web.
一种从网上采集相似数据的文档对象模型的树形配置样例。
Listing 9 shows a DOM-based implementation of the parser interface.
清单9显示了一个基于DOM的解析器接口实现。
This is a DOM object representing the XML document seen in Listing 2.
这是一个DOM对象,表示清单2中的XML文档。
Step 1: Convert the XML into a DOM object as demonstrated in Listing 3.
步骤1:将XML转换成DOM对象,如清单3所示。
If you're building a DOM tree, the process still follows the same model.
如果构建一个dom树,构建过程仍然遵循相同的模型。
This expression may actually return a DOM object if there is a single input field.
如果只有一个输入字段,那么该表达式可以返回一个DOM对象。
Or you can read in a file, transform it, and put the resulting document into a DOM document.
或者您也可以读取文件中的内容,并对它进行转换操作,然后再将结果文档存储到DOM Document中。
The function in Listing 5 takes a node of a DOM document and makes it into a SimpleXML node.
清单5中的函数将DOM文档中的节点转化成SimpleXML 节点。
Define a DOM element to be used as the sandbox. This element can be a simple standard declaration.
定义一个DOM元素,将其用作沙箱。
It supplies a constructor for taking in a dom org.w3c.dom.Node, and will read from that Node when used.
它提供一个构造器来接收dom or g . w3c . dom .Node,然后在使用时从该Node读取。
Listing 3 shows a function that creates a DOM document to use as a context node for further XPath evaluations.
清单3显示了一个创建作为进一步执行XPath判断的环境节点的DOM文档。
For example, default attributes can appear in a DOM tree or new SAX events can occur as a result of validation.
比如,dom树中可能出现默认属性,或者作为验证结果出现新的SAX事件。
Creating a DOM tree from scratch results in a higher peak working set than loading the same document from disk.
在内存中临时创建一个DOM树比从磁盘上载入同样的文档会产生更高的工作空间峰值。
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 所示。
The main issue with using a DOM model is that it forces you to spread your XML code across the entire application.
使用DOM模型最主要的问题是,它迫使您将XML代码分散到整个应用程序中。
The main task of XMLizing is to parse the source and construct a DOM tree according to the source file definition.
XML化的主要任务是解析源文件,根据源文件定义构造DOM树。
Similar to the DOM wrapper that you created in the application server, you will create a DOM wrapper for the client.
与在应用服务器中创建的DOM包装器相似,我们将为客户机创建一个 DOM 包装器。
It's not abnormal: the SAX parser is very low level, so the application has to take over a lot of the work that a DOM parser would do.
这没什么不寻常的:sax语法分析器的级别很低,所以应用程序必须接管本来由DOM才能完成的大量工作。
Using the DOM isn't a good option, as there aren't good, simple ways to turn a DOM object into a string that you can send as a request.
使用DOM不是一种好的选择,因为没有简单易行的办法将 DOM对象转化成在请求中发送的字符串。
A good workaround is to use the DOM extension to load the HTML page as a DOM document and then convert it to SimpleXML, as in Listing 8.
一种好办法是使用DOM扩展,将HTML页面作为DOM文档载入,然后将其转换为SimpleXML,如清单8所示。
DOMWriter provides an API for writing a DOM node into various types of output streams. Xerces-C + + supports four types of output streams.
DOMWriter提供了一个API,用于将DOM节点写入各种类型的输出流中。
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非常相似,但其中的类和方法名称发生了变化。
Until recently, the only way xml_objectify worked was to create a DOM tree, then recurse through that tree to generate the "Pythonic" objects.
到目前为止,xml_objectify工作的唯一方法是创建一个dom树,然后遍历该树,生成“python化”的对象。
Then retrieve an instance of a DOM factory, and set the purchase order Schema on the factory. Then you create a DOM parser using the DOM factory.
然后检索DOM工厂的实例,在该工厂上设置订单Schema,使用这个 DOM 工厂创建 DOM解析器。
In Part 2, I'll show you how to load, manipulate, or synthesize a DOM document, and create the same bar graph using Scalable Vector Graphics (SVG).
在第2部分,我将向您展示如何装载、操作或者合成一个DOM文档,并用可伸缩矢量图(Scalable VectorGraphics,SVG)创建同样的条形图。
The evaluate() method takes two arguments: a string XPath, a DOM tree to evaluate that XPath against, and an XPath constant indicating the return type.
evaluate()方法拥有两个参数:一个字符串XPath,一个DOM树(用来针对其计算该 XPath),还有一个 XPath常量表示返回类型。
The Design Pattern Toolkit provides special model and data access tags that can access elements from your internal model, which is represented as a DOM.
DesignPatternToolkit提供了可以从内部模型(表示为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兼容。
应用推荐