Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 530 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
530
Dung lượng
4,7 MB
Nội dung
[...]... (JAXP) provides standardized interfaces for parsing and transforming XML documents JAXP is designed to fill a hole in the XML standard interfaces: there are standard interfaces for transforming and parsing XML, but no standard interfaces for obtaining the transformers and parsers When XML first started gaining popularity, there were no standards for processing it As time went on, standards developed... in greater detail, and with standard interfaces Ideally, JAXM would just leverage the interfaces provided by JAXP, but it doesn’t This is because JAXM and JAXP were developed in parallel, by separate Java Community Process teams It’s unfortunate and confusing, however, and makes the processing of XML documents with both JAXM and JAXP harder If you have to receive a message via SOAP, and process it further... could not be swapped in and out without making small changes to the application code JAXP provides a standard set of interfaces, and more importantly classes, that allow for the creation of these implementation objects JAXP does not redefine XML standards; instead, it leverages those standards (DOM, SAX, XSLT) that already have wide acceptance JAXP ensures that code utilizing the standards will not have... my ever-supportive wife,Trish, and my daughters, Anna and Katie.Without Anna and Katie, larger portions of the book would have been done in daylight hours, but the laughter they bring more than makes up for any lost sleep And without Trish, there would be no laughter or daylight at all —Bob Hablutzel,Technical Editor and Contributor Sun Certified Java Architect Consultant and Founding Partner, InflexionPoint... free, fast, and lightweight to install; you can easily run Tomcat as a test server on your development machine Like Ant,Tomcat is open-source and available at www.jakarta.apache.org/ant Along with Ant and Tomcat, JWSDP includes the WSDP (Web Services Developer Package) Registry server.This is a simple UDDI server, again for development and testing use Unlike Ant and Tomcat,WSDP is a Sun project and is not... initiative—it gathers and highlights existing technologies, and gives them a common name The JAXM, JAXP, and JAX-RPC libraries were developed as separate initiatives by the Apache Jakarta project and the Java Community Process Because they were developed separately, there are places where the APIs overlap JAXP The Java API for XML Processing (JAXP) provides standardized interfaces for parsing and transforming... on the libraries and tools that come with the JWSDP, and using these tools for real-world applications After reading this book, you should be ready to begin writing and using Web services and XML documents in Java www.syngress.com 210_WSDP_01.qxd 6/5/02 10:16 AM Page 3 Introduction to the JWSDP • Chapter 1 JWSDP History As just mentioned, the JWSDP is a collection of existing tools, and is, in some... the Parser Enabling Validation Enabling Namespaces Namespaces and Events Enabling Other Features Features and Properties Setting Features Setting Properties Handling Advanced Events ContentHandler ErrorHandler SAX2 Extensions LexicalHandler DeclHandler Summary Solutions Fast Track Frequently Asked Questions Chapter 3 Processing XML Documents with DOM Introduction The Document Object Model The DOM Tree... functionality Chapter 4 XML Transformations Introduction Reviewing XSL and XSLT XPath and XSLT Axes and Locations Procedural XSLT , , JAX-P and Underlying XSL Engines Using JAX-P Classes Creating a Transformer Source and Result Transformer Templates Miscellaneous JAX-P for XSL... aspects of JAXP: parsing using SAX and DOM parsers, and processing XML through XSLT transforms JAXM The Java API for XML messaging addresses a similar problem: when the SOAP (Simple Object Access Protocol) standard was proposed, it did not have a standard set of libraries for Java Not particularly surprising, given Microsoft’s involvement in the creation of the standard, but still a problem for Java . (UML), CORBA,Web Services, .NET Framework, C#,ASP .NET, Web Security and Enterprise Application Integration. Jay has been developing object-oriented systems in Java since 1996 and is a Sun Certified Java. debugging, and deployment. Bob is particularly interested in the efficiency and accuracy of large systems and has advised numerous pro- jects on the identification and elimination of bottlenecks and errors 42 Setting Features 43 Setting Properties 43 Handling Advanced Events 44 ContentHandler 44 ErrorHandler 45 SAX2 Extensions 47 LexicalHandler 47 DeclHandler 48 Summary 49 Solutions Fast Track 50 Frequently