XML Development with Java 2 - Michael Daconta, Albert J. Saganich

XML Development with Java 2

Media-Kombination
448 Seiten
2000
Sams Publishing
978-0-672-31653-1 (ISBN)
63,95 inkl. MwSt
  • Titel ist leider vergriffen;
    keine Neuauflage
  • Artikel merken
XML Development with Java 2 covers crucial topics such as the XML Documet Object Model (DOM), Using Java and XSL to transform and format XML data, Integrating XML into JavaBeans and EJB development, and using XML with Java Servlets.
XML Development with Java 2 provides the information and techniques a Java developer will need to integrate XML into Java-based applications. This book presents a fast-paced introduction to XML and moves quickly into the areas where XML has the biggest impact on Java Development. The book covers crucial topics such as the XML Documet Object Model (DOM), Using Java and XSL to transform and format XML data, Integrating XML into JavaBeans and EJB development, and using XML with Java Servlets. The authors also cover the impact XML has on Java database access and the way XML works with the Swing classes.

Michael C. Daconta is President of Synergy Solutions, Inc. where he develops advanced systems with Java, JavaScript and XML. Additionally, Mr. Daconta trains introductory and advanced courses in numerous web technologies. He is a Sun-certified Java Programmer who has been developing software for 16 years. He co-authored Java Pitfalls and Java 2 and JavaScript for C and C++ Programmers and authored C++ Pointers and Dynamic Memory Management. Albert J. Saganich is a Principal Technologist with BEA Systems Inc. where he develops, trains, and mentors on Java, XML and related Internet technologies. Al is currently responsible for developing and maintaining the BEA WebLogic Server training curriculum and presents training materials whenever he can. Al has been involved with software development for almost 15 years and has co-authored The Java 2 and JavaScript for C and C++ Programmers (with Mike C, Daconta) as well as The Microsoft Visual J++ SourceBook (with Jay Cross). In his spare time Al writes Java, C++ and XML based articles.

Introduction.


1. An XML Primer.


History of XML. Benefits of XML. Components of XML.



BNF Grammar. Prolog. Elements. Attributes. Comments. Document Type Definition. Element Declaration. Attribute-List Declaration. Syntactic Rules. Valid and Well-Formed Documents. Creating a Markup Language from Scratch.



Summary. Suggested for Further Study. Further Reading.



2. Parsing XML.


Parsing Methodologies.



StringTokenizer and Scanners. Requirements for XML Processors. Event-based Versus Tree-based Parsing.



SAX API.



The DocumentHandler Interface. The ErrorHandler Interface. The DTDHandler Interface. The EntityResolver Interface. Interfaces Implemented by Parser Writers. SAX Standard Classes and Helper Classes.



The Java API for XML Parsing (JAXP).



The SAX Parser Factory. The Document Builder Factory.



Alternative Parsers.



AElfred.



Summary. Suggested for Further Study. Further Reading.



3. The Document Object Model (DOM).


Defining the Document Object Model.



DOM Requirements.



DOM Core Level.



Documents, Elements, and Nodes.



Creating Document Objects. Node Interface.



Methods that Return Information About a Node. Methods that Return Information About the Children of a Node. Methods Related to the Parent or Siblings. Methods that Return Information About the Document a Node Is. Contained Within. Methods for Manipulating the Children of a Node.



NodeList and NamedNodeMap.



NodeList. NamedNodeMap.



Document Interface.



Methods that Return Information About the Document or Implementation. Methods that Return Information About Descendant Nodes. Methods that Create Descendant Nodes.



Element Interface.



Methods that Return Information About an Element. Methods for Manipulating Element Attributes. Accessing Child Nodes.



Attr Interface. Additional Interfaces. Creating DOM Elements. DOM Level II.



View Interfaces. Stylesheet Interfaces. Events. Traversal Interfaces. DOM Ranges.



The DOM Core Defined. Implementation Anomalies.



Processing Instructions. Unexpected Child Nodes. Results Using toString. CR/LF in XML Document Text. Comments. Entities.



Summary. Suggested for Further Study. Further Reading.



4. Advanced XML.


Advanced Markup.



Character References. Entities and Entity References. Understanding Attribute Types. Attribute Value Normalization and Whitespace Handling. Any and Mixed Element Content Models. CDATA Sections. Conditional Sections. Processing Instructions. Encoding and the Standalone Document Declarations. The XML Grammar.



Namespaces in XML.



Declaring Namespaces. How Namespaces Affect the DTD. Applying Namespaces. Parser Support for Namespaces.



The XLink Specification.



Comparison to HTML Hyperlinks. Link Types. Link Attributes. Extended Links.



The XPointer Specification.



XPath.



XML Schemas.



Schema Structures. Schema Datatypes. A Sample Schema.



Summary. Suggested for Further Study. Further Reading.



5. Java and the Extensible Stylesheet Language (XSL).


The XSL Language. The Format of a Stylesheet. Working with the xsl:template.



Templates Are Recursive. Default Rules.



Working with xsl:output. Using XSL Processors.



Using xml:stylesheet. Running XT. Running LotusXSL. XML/XSL with Microsoft Internet Explorer 5.0.



Pattern Matching with match= and select=.



Matching the Root. Literal Result Elements. Matching Specific Elements. Matching Attributes. Using xsl:value-of Review. Patterns for Ancestor-Descendant Relations. Patterns Using Built-ins.



Working with Expressions.



Boolean Expressions. Combining Expressions with Logical Operators. Number Expressions. String Expressions. Node Set Expressions. Result Tree Fragment Expressions.



Precedence for Rules.



xsl:import and Import Precedence. Including Stylesheets with xsl:include. Explicit Priority.



Advanced XSL.



Modes. Conditional and Repeat Processing. Sorting. Numbering. Variables. Creating Content.



Attribute Value Templates.



Copying Nodes with xsl:copy.



Formatting Objects.



Formatting Objects Overview. Using the Formatting Object Specification (FOP). Areas. The FO Namespace. Anatomy of a FO Document.



Summary. Suggested for Further Study. Further Reading.



6. Collections and XML.


Collection Basics. Using a Collection. Translating a DOM to Other Collections.



DOM to Array. DOM as a List. Sorting a DOM.



Custom Collections. Summary. Suggested for Further Study. Further Reading.



7. Swing and XML.


Displaying the DOM.



Swing Component Basics. The DomViewer Application.



The Model-View-Controller Architecture and XML.



The DomTable Application.



XML in GUI Construction.



The Menu Markup Language (MenuML). The DomMenu Application.



Summary. Suggested for Further Study. Further Reading.



8. JavaBeans, EJB, and XML.


JavaBeans and XML. Enterprise JavaBeans (EJBs) and XML. JavaBeans.



JavaBeans Architecture. A DTD for JavaBeans. XML to JavaBeans. JavaBean to XML.



Enterprise JavaBeans.



EJB Architecture. Home Interface and Lifecycle Services. Remote Interface. Java Naming and Directory Interface (JNDI) Basics.



Anatomy of a Simple Entity EJB. EJB Deployment. Summary. Suggested for Further Study. Further Reading.



9. Servlets and XML.


Servlet Basics.



The Servlet API. Using the Java Server Web Development Kit (JSWDK).



The Aphorisms Web Site. Generating XML from an HTML Form.



The ProcessAphorismForm Servlet.



Transforming XML to HTML.



James Clark's XT Program. The AphorismsToHtmlTbl Servlet.



Summary. Suggested for Further Study. Further Reading.



10. XML and Database Access.


Mapping XML to a Relational Database. XML Queries.



Requirements for an XML Query Language. Properties of Relational Database Queries.



XML Query Languages.



XML-QL. DB2XML. Programming with DB2XML. Using Oracle and XML.



JDBC Refresher.



Driver Types and the JDBC Architecture. A Simple JDBC Application. Meta-data.



Summary. Further Reading.



Appendix A. XML Tools.


Editors/Authoring Tools. Parsers/XSL Processors. XML Storage/Servers. XML Tutorials. Web Sites.



Index.

Erscheint lt. Verlag 25.10.2000
Verlagsort Indianapolis
Sprache englisch
Maße 187 x 232 mm
Gewicht 762 g
Themenwelt Informatik Programmiersprachen / -werkzeuge Java
Mathematik / Informatik Informatik Web / Internet
ISBN-10 0-672-31653-6 / 0672316536
ISBN-13 978-0-672-31653-1 / 9780672316531
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich