单词 | JAXP | ||||
释义 | JAXP
例句释义: 解析器的使用 1. That was the initial reason for JAXP to exist: to remove any chance of you putting that sort of information directly into your code. 这也是JAXP存在的首要原因:防止将此类信息直接放入代码。 www.ibm.com 2. JAXP initially had the goal to remove some of the vendor-specific details, related to which XML parser was used, from SAX and DOM code. 最初,JAXP的目标是从SAX和DOM代码中移除一些特定于供应商的信息(涉及到所使用的XML解析器)。 www.ibm.com 3. This shouldn't be too much of a surprise: XPath is a core part of JAXP now, and JAXP provides integrated DOM support as well. 这毫不奇怪:XPath现在是JAXP的核心部分,而JAXP也提供了完整的DOM支持。 www.ibm.com 4. JAXP lets you do a lot more than just pass in files, as you'll learn in the next section, Input and output. JAXP不仅允许您传递文件,它还允许您做好多事,在下一节输入和输出中将学习相关内容。 www.ibm.com 5. Both are easy to deal with and shouldn't pose any difficulty when using JAXP. 两个问题都易于处理,且不应在使用JAXP时造成任何困难。 www.ibm.com 6. JAXP would still have the benefit of making translation between SAX and DOM easy, but this would be a nice nod to the XML community. JAXP将仍然受益于在SAX和DOM之间轻易转换,不过对于XML社区来说将会是一个很大的欣喜。 www.ibm.com 7. First, convert your constraint model -- presumably a file on disk somewhere -- into a format that JAXP can use. 首先,将约束模型(可能是某个磁盘上的文件)转化为JAXP可以使用的格式。 www.ibm.com 8. In Part 1, you saw that you can replace the default JAXP parser implementation with your own implementation by changing a system property. 在第1部分中已经看到,通过更改系统属性,可以用自己的实现替换默认JAXP解析器实现。 www.ibm.com 9. In this version of JAXP, the changes to the javax. xml. transform package mainly focus on fixing bugs and clarifying some parts of the API. 在JAXP的这个版本中,javax.xml.transform包的变化主要包括错误修正,并澄清了API的某些部分。 www.ibm.com 10. To understand JAXP's parsing and validation features, you'll wade through very little tricky material. 要理解JAXP的解析和验证特性,您需要阅读比较晦涩的资料。 www.ibm.com 1. As you learned in Part 1, JAXP is a layer over SAX and DOM that enables Java programmers to perform vendor-neutral XML parsing. 在第1部分中了解到,JAXP是位于SAX和DOM之上的层,它允许Java程序员执行开发商中立的XML解析。 www.ibm.com 2. JAXP will help you transform XML, but it won't get you to a binary format. JAXP会帮助转换XML,但它不允许转换为二进制格式。 www.ibm.com 3. Get a factory class to provide instances of a vendor-specific JAXP implementation. 获得一个工厂类,以提供特定于供应商的JAXP实现的一个实例。 www.ibm.com 4. It's easy to change out the parser that the JAXP factory classes use. 更改JAXP工厂类使用的解析器很容易。 www.ibm.com 5. Using a Sun-specific class, then, violates the point of using JAXP. 因而使用特定于Sun的类会违反使用JAXP的要点。 www.ibm.com 6. But JAXP's dullness has lulled developers away from looking to it for new features. 不过JAXP的迟钝已经让开发人员不再寻求新的特性。 www.ibm.com 7. With this added flexibility, you can insert JAXP into any of your XML event chains. 使用这个附加的灵活性,可以将JAXP插入到任何XML事件链中。 www.ibm.com 8. It also integrates easily with your existing JAXP code, making the addition of schema validation a snap. 它很容易与已有的JAXP代码结合在一起,增加模式验证非常简单。 www.ibm.com 9. You are certainly encouraged to check these out in the latest JAXP specification online (see the Resources section). 当然鼓励您在最近的JAXP规范中联机查看这些(请参阅参考资料一节)。 www.ibm.com 10. As shown in Listing 7, it is fairly simple to initiate the XSLT transformation using JAXP and the XSLT engine shipped with the JDK. 如清单7所示,通过使用JDK附带的JAXP和XSLT引擎,开始XSLT转换是非常简单的事情。 www.ibm.com 1. It simply takes in XML on the command line and then loads that XML into a DOM tree using the JAXP DOM APIs. 它仅仅从命令行接收XML,然后使用JAXPDOMAPI将其加载到DOM树中。 www.ibm.com 2. What isn't moot, and worth continuing discussion, is what JAXP is now, and how it's being used. 真正具有现实意义且值得讨论的是:JAXP如今的角色是什么?以及人们正在如何使用它? www.ibm.com 3. As minor changes get introduced in the final stages of the DOM standard, JAXP will, of course, include these modifications. 如果DOM标准的最终版本引入了小的改动,JAXP当然要包括这些修改。 www.ibm.com 4. Class, rather than letting a JAXP or SAX implementation handle this task for you. 类,而不是让JAXP或SAX为您处理这个任务。 www-128.ibm.com 5. That's beyond the scope of this article, but for details you can refer to the JAXP tutorial at Sun. 那超出了本文的范围,但是要获取详细信息,可以查阅Sun中的JAXP教程。 www.ibm.com 6. Read Part 1 of this two-part series, which introduces JAXP and its parsing and validation features. 请阅读这个两部分系列的JAXP全面介绍,第1部分,其中介绍了JAXP及其解析和验证特性。 www.ibm.com 7. In other words, there's just so much new (and good) in JAXP 1. 1 that I couldn't wait to give you a taste of what's coming. 换句话说,JAXP1.1中的新东西(也是好东西)实在太多,我迫不及待地要让您感受一下它们。 www.ibm.com 8. In normal JAXP processing, everything begins with a factory. 在一般的JAXP处理中,都是从工厂开始的。 www.ibm.com 9. In its early incarnations, JAXP was little more than a thin veneer over SAX and DOM -- and over outdated versions of those APIs, at that. 在早期版本中,JAXP不过是位于SAX和DOM以及那些API过时版本之上的小薄层。 www.ibm.com 10. This step is needed only if you want to select a specific DOM to be used by JAXP; otherwise, it uses a default implementation. 仅当想选择一个要由JAXP使用的特定DOM时,才需要这一步;否则,它使用缺省实现。 www.ibm.com 1. For this reason, JAXP provides methods to determine the parser's settings. 因此,JAXP提供了确定解析器的设置的方法。 www.ibm.com 2. Many of the changes to the JAXP API have centered around parsing, which makes sense, given that the "P" in JAXP stands for "parsing. " 很多对JAXPAPI的改动都围绕语法分析进行,考虑到JAXP中的“P”代表“parsing”(语法分析),这是有意义的。 www.ibm.com 3. Second, a major purpose of JAXP is to provide vendor independence when dealing with parsers. 其次,JAXP的主要用途是在处理解析器时提供开发商独立性。 www.ibm.com 4. Behind the scenes, the JAXP implementation takes care of the vendor-dependent code, keeping your code happily unpolluted. 在内部,JAXP实现处理依赖于供应商的代码,使您的代码不受影响。 www.ibm.com 5. Understanding this distinction is critical if you're going to use JAXP correctly. 如果您要正确使用JAXP,则理解此差别是非常必要的。 www.ibm.com 6. JAXP provides a standardized interface for parsing and transforming XML documents. JAXP为语法分析和转换XML文档提供了一个标准化的接口。 www.ibm.com 7. If your parser is not JAXP 1. 2-compliant, it throws a SAXNotRecognizedException exception when you try to set the property. 如果您的解析器不符合JAXP1.2,那么当您试图设置该特性时,它会抛出一个SAXNotRecognizedException异常。 www.ibm.com 8. Understanding XSL's basic program flow is crucial to grasping how JAXP handles transformations. 理解XSL的基本程序流对于掌握JAXP如何处理转换是非常关键的。 www.ibm.com 9. In theory, the last option should make it easier to interact with other JAXP technologies, such as SAX and DOM. 从理论上说,后一种办法很容易和其他JAXP技术交互,比如SAX和DOM。 www.ibm.com 10. The same principle applies for JAXP, but it isn't as clearly publicized: JAXP comes with a parser so it can be used immediately. 同一原则适用于JAXP,但并未明确公布:JAXP附带解析器是为了可以立即使用。 www.ibm.com 1. The source object allows any APIs that understand JAXP sources to read the data. 这个源对象允许任何理解JAXP源的API读取数据。 www.ibm.com 2. JAXP was initially intended merely to provide convenience and vendor-neutrality to SAX and DOM. 最初,JAXP的目的仅仅是向SAX和DOM提供便利性和供应商中立性。 www.ibm.com 3. JAXP can accept XML as a file or as a stream wrapped around a file, for obvious reasons. 显而易见的原因是,JAXP可以将XML接受为文件或包装文件的流。 www.ibm.com 4. As you may recall from JAXP 1. 0, the SAXParserFactory class allows configuration of SAXParser instances returned from the factory. 如您可从JAXP1.0中所回忆的一样,SAXParserFactory类允许对从factory返回的SAXParser实例进行配置。 www.ibm.com 5. That said, even advanced developers who use JAXP often have misconceptions about the very API they depend on. 也就是说,即使使用JAXP的高级开发人员对于他们十分依赖的API也有误解。 www.ibm.com 6. While DOM Level 2 has not been finalized, JAXP 1. 1 supports the specification as it now stands. 虽然DOM级别2还没有完成,但是,JAXP1.1支持其目前的规范。 www.ibm.com 7. JDBC 4. 0 allows the XML data to be accessed through strings, reader and writer streams, or JAXP sources and results. JDBC4.0允许通过字符串、读取程序和写入程序流或者JAXP源和结果而访问XML数据。 www.ibm.com 8. JAXP is not a general transformation engine. JAXP不是一般的转换引擎。 www.ibm.com 9. Strictly speaking, JAXP is an API, but it is more accurately called an abstraction layer. 在讲解代码之前,介绍一些基本概念很重要。严格地说,JAXP是API,但是将其称为抽象层更准确。 www.ibm.com 10. And JAXP's goal was simple: to make using SAX and the DOM easier, in particular in the area of vendor neutrality. JAXP的目标非常简单:使SAX和DOM的使用更加简单,尤其是在供应商中立领域。 www.ibm.com 1. Instead, JAXP makes it easier to use DOM and SAX to deal with some difficult tasks. 它只是使通过DOM和SAX处理一些困难任务更容易。 www.ibm.com 2. Not only does JAXP break out the final linefeed separately, it also decomposes the first chunk of text into three separate pieces. JAXP不仅将最后一个换行单独断开,而且它还将第一块文本分解成三个单独的片段。 www-128.ibm.com 3. If you're rusty on how to get a DOM tree from various sources using JAXP, check out Resources for some helpful links. 如果您对如何使用JAXP从各种来源构建DOM树有些陌生,那么请访问参考资料中的一些有帮助的链接。 www.ibm.com 4. In both cases, though, the parser is part of the JAXP distribution, but not part of the JAXP API. 在这两种情况下,虽然解析器是JAXP发行版的一部分,但不是JAXPAPI的一部分。 www.ibm.com 5. JAXP 1. 3 completes the mapping by defining the missing types as a part of the Java platform. 作为Java平台一部分的JAXP1.3增加了缺少的类型,从而完善了类型映射。 www.ibm.com 6. Saxon implements the TrAX (transformation API for XML) interface defined as part of the JAXP 1. 1 Java extensions. Saxon实现了TrAX(XML的转换API)接口,该接口被定义成JAXP1.1Java扩展的一部分。 www.ibm.com 7. This lack of updated standards has been one of the biggest criticisms of JAXP 1. 0. 这种更新标准的缺乏曾一度是JAXP1.0中最受批评之处。 www.ibm.com 8. In fact, many developers (maybe even you) use SAX, DOM, or JDOM without even touching JAXP. 实际上,许多开发人员(可能甚至包括您)使用的都是SAX、DOM和JDOM,他们甚至还没有接触过JAXP。 www.ibm.com 9. However, many people refer to the classes included in Sun's parser as part of the JAXP API itself. 但是,许多人将Sun的解析器中包括的类作为JAXPAPI本身的一部分。 www.ibm.com 10. Just about a month ago, I wrote a piece entitled " All About JAXP. " 就在一个月前,我写了一篇文章“JAXP专述”。 www.ibm.com 1. You can use any JAXP-compliant parser framework for these values. 您可以为这些值使用任何兼容JAXP的解析器。 www.ibm.com 2. So far, this is just standard JAXP and DOM, nothing really new. 到目前为止,这仅仅是标准的JAXP和DOM,没有什么新鲜的。 www.ibm.com 3. It is part of Sun's Crimson parser, packaged in earlier versions of JAXP. 它是Sun的Crimson解析器的一部分,包装在JAXP的早期版本中。 www.ibm.com 4. This package has existed since JAXP 1. 0. It defines a vendor-neutral API for parsing and validating XML documents using SAX or DOM. parsers:这个包从JAXP1.0起就一直存在,它定义了厂商中立的使用SAX或DOM解析和验证XML文档的API。 www.ibm.com 5. Now, with JAXP 1. 3, you can parse, validate, and transform XML without ever writing a line of vendor-specific code. 现在,使用JAXP1.3可以解析、验证并转换XML,而无需编写一行特定于开发商的代码。 www.ibm.com 6. More and more, JAXP is no longer wraps SAX and DOM, but actually replaces them. 随着时间的推移,JAXP已不再封装SAX和DOM,而是在逐步取代它们。 www.ibm.com 7. The flexibility of JAXP lies in how you can represent XML. JAXP的灵活性在于可以如何表示XML。 www.ibm.com 8. JAXP 1. 2, a maintenance release for JAXP, fills in the blanks by providing a standard mechanism on the Java platform. JAXP1.2是JAXP的一个维护发行版,它在Java平台上提供了一种标准机制,从而填补了这一领域的空白。 www.ibm.com 9. The JAXP 1. 3 specification defines a simple API that allows applications to compile and cache schemas. JAXP1.3规范定义了一种简单的API,允许应用程序编译和缓冲模式。 www.ibm.com 10. Demonstrates how to use the new properties in JAXP 1. 2 To validate a document through a SAX parser. 演示了如何使用JAXP1.2中的新特性,通过SAX解析器来验证文档。 www-128.ibm.com 1. Part 2 will show you how JAXP can help you transform XML documents. 第2部分将介绍JAXP能够如何帮助转换XML文档。 www.ibm.com 2. If your parser is not JAXP 1. 2-compliant, it will throw an IllegalArgumentException exception. 如果您的解析器不符合JAXP1.2,那么它将抛出一个IllegalArgumentException异常。 www.ibm.com 3. A compliant JAXP implementation must support W3C XML Schema. Supporting other languages, such as RELAX NG, is optional. 兼容的JAXP实现必须支持W3CXMLSchema,是否支持其他语言(如RELAXNG)则是可选的。 www.ibm.com 4. JAXP is a lot simpler than people think. JAXP比人们想象的要简单得多。 www.ibm.com 5. JAXP 1. 3 requires that all three be implemented by conforming parsers. JAXP1.3要求所有符合规范的解析必须实现上述三个标准。 www.ibm.com 6. The most anticipated change from JAXP 1. 0 to 1. 1 is the updated support for the popular SAX and DOM standards. 从JAXP1.0到1.1的升级中,最令人期待的改变是对流行的SAX和DOM标准支持的更新。 www.ibm.com 7. Set the properties for the schema language and schema source (this is new to JAXP 1. 2 and schema). 设置模式语言和模式源的特性(这是JAXP1.2和模式中新出现的)。 www.ibm.com 8. But the most significant changes in JAXP 1. 1 center around XML transformations, which I will cover later in this article. 但是,JAXP1.1中的重大改动是围绕XML变换进行的,以后将在本文中介绍。 www.ibm.com 9. This tip shows you how to implement robust document validation with XML schema and JAXP 1. 2. 这篇技巧文章向您演示了如何使用XML模式和JAXP1.2实现健壮的文档验证。 www-128.ibm.com 10. Still, the core ideas outlined here will appear in JAXP 1. 1 in some form. 本文所概述的核心概念仍将以某种形式出现在JAXP1.1中。 www.ibm.com 1. The previous version of JAXP only supported SAX 1. 0 and DOM Level 1. 前一版的JAXP只支持SAX1.0和DOM级别1。 www.ibm.com 2. To test Listing 2, you need a JAXP 1. 2-compliant parser. 要测试清单2,需要一个符合JAXP1.2的解析器。 www.ibm.com 3. I'm a member of the expert group for JAXP 1. 1, and we're nearing completion on the 1. 1 specification. 我是JAXP专家小组的成员之一,我们现在即将完成1.1规范。 www.ibm.com 4. JAXP 1. 3, which will be part of J2SE 5 and J2EE 4, is the first major release of this API in over three years. JAXP1.3将成为J2SE5和J2EE4的一部分,在过去三年中,它是JAXPAPI最重要的一个版本。 www.ibm.com 5. The bad news is that until JAXP 1. 3 is finalized, no standard API can do that. 不好的消息是,在JAXP1.3最后定稿之前,还没有能完成这一任务的标准API。 www.ibm.com 6. In Java 5. 0 (and JAXP 1. 3), JAXP introduces a new way to validate documents. 在Java5.0(和JAXP1.3中),JAXP引进一种新方法来验证文档。 www.ibm.com 7. Like the parsing portion of JAXP, performing XML transformations requires three basic steps 与JAXP的语法分析部分一样,执行XML变换需要三个基本步骤 www.ibm.com 8. As with its input counterpart, you'll generally use JAXP's concrete Result implementations 与其输入对应物一样,一般使用JAXP的具体Result实现 www.ibm.com 9. JAXP 1. 2 Also defines schema support for the DOM parser, as shown in JAXP1.2也定义了用于DOM解析器的模式支持,如 www-128.ibm.com 10. Listing 2 shows examples of the various uses of the SAXParser class, the core class in JAXP for SAX parsing 下一个清单显示SAXParser类(这个JAXP中SAX语法分析的核心类)的各种使用示例。 www.ibm.com 1. As simple as all of this is, using JAXP this way has two significant limitations 这一切都很简单,但这样使用JAXP有两个明显的限制 www.ibm.com |
||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。