确定要使用哪种根元素类型很重要,因为它说明了(至少大致说明)文档的用途。
Deciding what type of root element to use is important because it states the document's purpose, at least in broad terms.
它也不指定任何特定消息类型或XML文档的根元素。
It does not designate any specific message types or root elements of XML documents.
首先,注意lure类型是根元素的一个属性。
First, note that the lure type is an attribute of the root element.
再次,根级别(root - level)数据类型元素XUI表明。
在TheftReport例子中,交换架构将包含tr:TheftReport元素(因为它是根元素)及其类型。
In the Theft Report example, the exchange schema will contain the tr: TheftReport element, because that is the root, and its type.
一个交换架构,以定义TheftReport类型(因为这是根元素),并提供一个结构以允许所有其他类型被包含在消息中。
An exchange schema to define the TheftReport type (because that is the root) and provide a structure that allows all of the other types to be included in the message.
使用样例就能清楚地看出任何给定文档类型中哪个元素是根元素,并为每个元素提供典型数据的例子。
Using samples makes it clear which element is the root element in any given document type and provides examples of typical data for each element.
还需要注意的是,响应消息的根元素就是按照包括的复杂类型命名的全局元素。
Again, notice how the root element of the response message is the global element that is named after the contained complex type.
它先创建字符串类型的根invoice元素并将其载入到一个SimpleXML对象。
It begins by creating the root invoice element as a string and loading it into a SimpleXML object.
在所提议模式的根上,是Application元素,而映射到这八种类型(Boolean、String和number类型)的元素是在底层的。
At the root of the proposed schema is the Application element, while the elements mapping the eight basic types (Boolean, String, and Number types) are at the bottom.
根据DTD文法生成QDML文件之后,必须编辑该文件来定义文档的根元素,并为非string值(在这里,是几个int)添加类型信息。
After generating the QDML file from a DTD grammar I had to edit the file to define the document root element and add type information for non-String values (a couple of ints, in this case).
因此,命名类型的定制绑定保持根元素的QName,因为绑定对封装元素一无所知。
Therefore, the custom binder for named types keeps the QName of the root element because the binder does not have knowledge of the enclosing element.
分部类必须派生自支持根元素的类型。
The partial class must derive from the type that backs the root element.
分部类必须派生自支持根元素的类型。
The partial class must derive from the type that backs the root element.
应用推荐