The size and complexity of the document handler class increases with the number of different XML tags, up to the point where readability and maintenance can become very difficult.
文档处理程序类的大小和复杂性随着不同XML标签数量的增加而增加,直到某个时候可读性和维护性都变得非常差。
This lets you make many types of changes to either your class structure or your XML document structure without needing to change the other to match.
这让您可以对类结构或XML文档结构中的一个作多种更改,而不必同时更改这两个结构以求匹配。
You can think of this class as a virtual document, such as an HTML page, a PDF file, or a text file.
你可以把这个类想象成代表了一个实际的文档,比如一个html页面,一个PD f文档,或者一个文本文件。
The type attribute of the element specifies the class to instantiate as the source document object.
元素的类型属性指定作为源文档对象要实例化的类。
Let's take a simple XML document containing the list of employees at an organisation, add it to a GAE project, create a class for the elements, and store them as entities.
让我们以一个简单X ML文档(包含一个组织的员工列表)为例,将它添加到一个GAE项目,为其中的每个元素创建一个类,然后将它们存储为实体。
The class shown in Listing 2 demonstrates how you can split the processing of a document, shown in Listing 1, between multiple handlers.
清单2中展示的类演示了如何在多个处理程序之间划分对一个文档(如 清单1所述)的处理任务。
Run this document through your parser class, and see how it differs from the simpler output of the non-namespaced XML from the last tip.
请用解析类运行一下这篇文档,看看它与上一篇技巧文章中的那个没有定义命名空间的XML的输出有什么区别。
Figure 3 shows the first example of this type, with the same XML document structure bound to a single class rather than the pair of classes used previously.
图3显示了该类型的第一个示例,它将相同的XML文档结构绑定到单个类,而不是以前使用的两个类。
This is just the full version of the same document and class structure used in Figure 1.
该示例恰好是图1中使用的文档和类结构的完整版本。
This class has the fundamental job of applying an XSLT stylesheet to an XML document (see Listing 2).
该类实现对一个XML文档应用xslt样式表的基本功能(参见清单2)。
An XSL stylesheet usually specifies the presentation of a class of XML documents by describing how an instance of the class is transformed into an XML document that USES the formatting vocabulary.
通过描述如何将类的实例转换成使用该格式化词汇表的XML文档,xsl样式表通常指定了该类XML文档的表示。
In the style section of an HTML document, type the name of the class, a space, and an opening curly bracket to begin the definition.
在HTML文档的样式部分中,输入类名、一个空格和一个前花括号,开始定义。
In this document, the term class will be used as a definition and the term object will be used to represent a physical instance of this definition.
在本文档中,类一词用于定义,而对象一词用于表示该定义的一个具体实例。
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非常相似,但其中的类和方法名称发生了变化。
The MBeanDescriptorUtil class provides a pair of static read methods that load and save the XML document model.
mbeandescriptorutil类提供了两个静态的read方法,它装载并保存这个XML文档模型。
The filter attribute specifies an instance of the org.xml.sax.XMLFilter class for filtering the document prior to parsing.
filter属性规定org.xml.sax.XMLFilter类的一个实例,以在分解之前对文件进行过滤。
Every Notes document of the returned Notes document collection is wrapped in its own instance of the order class.
返回的Notes文档集合的每一个Notes文档都被打包在它们自己的订单类的实例中。
With Zeus, you subclass the implementation class and use your subclass instead of the generated class when unmarshalling a document.
用Zeus可以生成实现类的子类,当对文档进行数据分解时,使用子类而不是使用生成类。
Instead, a "listener" or "handler" class is responsible for providing a set of methods that respond to various events in the document stream.
相反,“listener”或“handler”类负责提供响应文档流中各种事件的一组方法。
Here the OutputFormat class wraps the document, giving a wide variety of options for the formatting of the generated text.
这里,Out putFormat类包装文档,并为格式化生成的文本提供了多种选项。
The DocumentBuilder class provides a way to build an XML document tree from a stream of bytes.
documentbuilder类提供了一种方法来通过一个字节流构建一个XML文档树。
The org.w3c.dom.Document class represents an XML document and is made up of dom nodes that represent the elements, attributes, and other XML constructs.
document类表示XML文档,由表示元素、属性和其他XML构造的DOM节点组成。
DOMDocument class: Check out the PHP Manual entry for this class, which represents an entire HTML or XML document and serves as the root of the document tree.
DOMDocument类:查阅有关这个类的PHPManual项,这个类代表了整个HTML或XML文档并充当文档树的根。
The method parses the return XML document and populates an ImportResult class with the detailed results of the import, as Listing 5 shows.
该方法解析返回的XML文档,并利用导入的详细结果填充importresult类,如清单5所示。
Look for a class that matches the name of the Resource element's class attribute from the loaded XML document.
从加载的XML文档查找一个类,它匹配Resource元素的class属性的名称。
The DOMParser class is defined by Xerces to build a document from the output of the Xerces parser.
Xerces 定义了 DOMParser类,以便从Xerces语法分析器的输出构建文档。
This is of particular importance to a class of applications that use XML as a messaging protocol rather than to represent document content, such as Web Services or Instant messaging applications.
对于那些使用XML作为消息传递协议而非表示文档内容的那些应用程序尤其重要,比如Web服务或即时消息应用程序。
For example, using the document-literal encoding imposes wrapped versions of each method class, and that, in turn, creates additional manageability and maintainability issues.
例如,使用文档文字编码利用了每个方法类的封装版本,并造成了额外的可管理性与可维护性的问题。
For example, using the document-literal encoding imposes wrapped versions of each method class, and that, in turn, creates additional manageability and maintainability issues.
例如,使用文档文字编码利用了每个方法类的封装版本,并造成了额外的可管理性与可维护性的问题。
应用推荐