不过,它还具有文本文档的优势,因为模型中的每个对象都可以包括注释和文档之类的属性。
However, it also has the advantages of a text document, since each object in the model can include attributes like comments and documentation.
“文档对象模型(DOM)”是一个与平台和语言无关的接口,它用于动态访问和更新XML文档的内容、结构和样式。
The Document Object Model (DOM), is a platform- and language-neutral interface for dynamically accessing and updating the content, structure, and style of XML documents.
例如,我可以用XML 文档初始化验证服务,在 XML文档里描述针对具体方法或对象需要执行的规则。
For example, I could initialize the validation service with an XML document describing the rules to run for specific methods and objects.
通过重新组织该文档,可以清晰地从对象结构描绘出可翻译资源,因为可翻译资源已移入单独的文件或子文档。
By reorganizing the document, the translatable resources are clearly delineated from the object structure because they have been moved into separate files or subdocuments.
通过例子说明对于处理简单、可预测并且不大的XML文档,SimpleXML(必要的时候与文档对象模型(DOM)结合使用)是一种理想的选择。
It demonstrated how SimpleXML, combined with the document Object Model (DOM) as necessary, is the ideal choice if you work with straightforward, predictable, and relatively basic XML documents.
使用SimpleAPIforXML2 (SAX2)和文档对象模型2 (DOM2)解析器解析xml文档。
Parse XML documents using the Simple API for XML 2 (SAX2) and document Object Model 2 (DOM2) parsers.
当在P 8中创建一个文档时,文档的元数据(与文档相关的一些属性,例如标题、创建者、最近修改日期等)存储在P8对象存储数据库中。
When you create a document in P8, the document's meta-data (the properties associated with the document, such as title, creator, last modified date, etc.), are stored in the P8 object store database.
如果文档存在,则创建汽车元素(因为每个DXL文档表示一个汽车对象)。
If the document exists, create a car element (because each of our DXL documents represents a car object).
图2展示了一个示例XML文档,该文档表示序列化之后的数据对象。
Figure 2 shows an example of an XML document that represents the data object after serialization.
我们使用会话文档上下文方法获得文档对象。
We get the document object using the session document context method.
您还将浏览所有数据两次:第一次浏览用于将其读入文档对象,然后在遍历文档对象时进行第二次浏览。
You're also reading through all the data twice: once for reading it into the document object, then again when walking through the document object.
这个对象包含文档文本和关于文本的元数据信息,比如文档语言。
This object contains the document text along with meta information about the text, such as the document language.
尽管这是最常见的数据绑定方法,但是使用XML文档并把整个文档表示成一个对象的API也是数据绑定的一种形式。
While that's the most common approach to data binding, APIs that take an XML document and represent the entire document as an object are also a form of data binding.
例如,您可以使用一个绑定数据编出文档,进行更改,然后使用另一个绑定将数据对象编组成输出文档。
You can, for instance, unmarshal a document using one binding, make changes, then marshal the data objects to an output document using a different binding.
来自此对象的二进制数据和文档名称用于将文档保存到一个本地文件。
The binary data and the document name from this object are used to save the document to a local file.
首先,使用解析器构建文档表示的某个数量的副本,并保存每个结果文档对象。
First, some number of copies of the document representations are built from parsers, with each resulting document object retained.
接着,您需要查询WSIL文档对象,以获得服务名称、服务摘要和WSDL 文档位置这些元素的信息。
Next, you need to query the WSIL document object for information regarding service names, service abstracts, and WSDL document location elements.
您可以将业务对象解析为XML文档,并使用服务数据对象(SDO)API通过XML文档对其进行反序列化。
You can parse business objects into a XML document and deserialize them from the XML document using Service Data object (SDO) APIs.
应用程序解析XML文档,通常使用文档对象模型(DOM)。
The application parses the XML document, typically using the document object model (DOM).
文档对象模型将XML文档内的元素、文本和其他类型的节点呈现为一系列的父子关系。
The document Object Model represents elements, text, and other types of nodes within an XML document as a series of parent-child relationships.
一些模型有对象级文档,偶尔有字段级文档,但是没有关于特定用例的文档。
Some of the model was documented at the object level and occasionally at the field level, but there was no documentation on specific use cases.
这个对象分析传递进来的WSIL检查文档并允许检索WSIL文档对象,如清单1所示。
This object parses the passed WSIL inspection document and allows for the retrieval of an WSIL document object, as shown in Listing 1.
它把XML文档封装成已装载的XML文档的分层对象属性集。
It encapsulates the XML document as a hierarchical set of object properties of the loaded XML document.
文档对象模型为XML文档指定了树型表示。
The document Object Model specifies a tree-based representation for an XML document.
让浏览器将该文档识别为XML并为其创建文档对象模型(DOM)至关重要。
It's critical to get the browser to recognize the document as XML and to create a document object model (DOM) for it.
也有使WSDL文档变得易于读取和解析以及将WSDL4J对象的内容作为XML文档写出的实用类。
There are also utility classes that make it easy to read and parse a WSDL document, as well as write out the contents of the WSDL4J objects as an XML document.
在VS2005和VS2008中,创建Excel 和Word文档级别的工程时,VSTO提供简单的对象模型让你为文档或工作薄创建智能标记。
The document-level projects for Excel and Word in VSTO (in Visual Studio 2005 and Visual Studio 2008) provide a simple object model that you can use to create smart tags for documents and workbooks.
第1行代码在当前数据库中创建了新文档,并返回代表新文档的DBDocument对象。
Line 1 creates a new document in the current database and returns a DBDocument object representing it.
文档的二进制数据、documentAttributes实例和文档状态是在Document类对象中设置的。
The binary data for the document, the documentAttributes instance, and the document status are set in the Document class object.
然而,由于WebSphereApplicationServer配置数据存储在一组配置文档中,因此父配置对象和新的配置对象可能驻留在不同的文档中。
However, since WebSphere Application Server configuration data is stored in a group of configuration documents, the parent and the new config object may reside in different documents.
应用推荐