"Java" Java XML technical topics

Source: Internet
Author: User
Tags xml parser xpath xsl xslt xslt processor xquery java se

    • Basic XML Tutorial
    • XML and Java Technology
    • Java XML document Model
    • JAXP (Java API for XML parsing)
    • StAX (streaming API for XML)
    • XJ (XML enhancements for Java)
    • XML validation
    • Xpath
    • Xquery
    • XSL Transformation Processor
    • XStream
    • Data binding

This topic summarizes a number of XML technical articles and tutorials for Java developers, covering the XML Foundation, the document model of Java XML, the programming API and data binding framework, and the practice of using XML in Java programming for your reference.

Basic XML Tutorial

Tutorial: Getting Started with XML
Why would you want to create XML? What are the rules for XML documents? How do you define what an XML document can contain and what it cannot contain? What are the programming interfaces for XML documents? What are the main XML standards and how do they work together? Is this something you've been eager to understand? Don't worry, this recently revised tutorial on getting started with XML will answer your questions.

Tutorial: Understanding the DOM
In this tutorial, you will learn about the structure of the DOM document. You will also learn how to use Java to create documents from XML files, make changes to documents, and retrieve output.

Tutorial: Understanding SAX
This tutorial studies the use of simple APIs for XML version 2.0 or SAX 2.0. It is intended for developers who understand XML and want to learn about lightweight, event-based APIs for working with XML data. In this tutorial, you will learn how to use SAX to retrieve, manipulate, and output XML data.

Tutorial: Introduction to XSLT Getting Started
This tutorial explains how to create an XSLT style sheet and provides a basic introduction to XPath, which can select specific parts of an XML document. In addition, some of the more advanced features of XSLT are shown.

Introduction to XML Novice
This article provides a foundation for readers who want to learn XML but don't know where to start.

XML and Java Technology

Tutorial: Using Java Technology for XML programming, part 1th
This tutorial covers the basics of manipulating XML using Java technology, examines common XML APIs, and discusses how to parse, create, manipulate, and transform XML documents.

Tutorial: Using Java Technology for XML programming, part 2nd
This tutorial shows you how to accomplish tasks such as generating XML data structures, validating XML documents, working with namespaces, and implementing XML parsers to connect to non-XML data sources.

Tutorial: Using Java Technology for XML programming, part 3rd
This tutorial shows you how to accomplish tasks such as generating XML data structures, manipulating those structures, and implementing a connection between an XML parser and a non-XML data source. As you would have expected, all the examples are based on open standards.

XML and Java Technology series

    • What are the advantages of XML?
      Brett McLaughlin presents the value of XML as a data interchange format.

    • Multiple uses of data binding
      Brett McLaughlin discusses the advantages of the data binding API and several data binding methods.

    • Low-level or advanced XML API?
      Brett McLaughlin describes some of the core XML APIs in detail and thinks about whether developers derive the most benefit from their Java and XML programming.

    • Sun's Java and XML APIs: What does it do?
      Is Sun's packaging, scaling, or damaging the current range of available Java and XML APIs? This was discussed by Brett McLaughlin.

    • Three ways to persist XML
      The use of XML allows for a variety of interesting features, but if you can't persist it to a file, everything will be futile. Brett McLaughlin will discuss various techniques for implementing XML persistence storage, and compare its advantages and disadvantages.

    • Tracing the source
      Brett McLaughlin Reviews Some XML basics, from document structure to long-disputed attribute/element issues. Re-learn how to optimize XML and ensure that you have the best structure.

Processing XML service definitions through Java programming
This article explores the practical application of XML and Java Technologies in SOA, and provides clear examples of why this seemingly complex technology can be so popular.

Common methods of updating XML documents in Java language programming
This paper briefly discusses four common methods of updating XML documents in Java language programming, and analyzes the merits and demerits of these four methods.

Standard Java interface for XML digital signatures in Java SE 6
In this paper, we first briefly introduce the technical background, explain the syntax and processing rules of XML digital signature, and then use the specific program examples to illustrate how to use Java SE 6 to generate XML digital signatures in various formats and verify them.

Scala and XML
Scala is a popular new programming language that runs on Java virtual machines (Java MACHINE,JVM). In this article, you'll learn about the practical usefulness of Scala in these areas and how Scala transforms XML processing into a pleasure.

Java XML document Model

XML in Java: Document model, part 1th: Performance
When choosing a model, it is not possible to make a clear tradeoff each time, and if you change your mind later, you need a lot of coding to switch. This article compares the performance and functionality of several Java document models.

XML in Java: Document model, part 2nd: Usage
This article combines sample code with the analysis of the model API to compare the usability of several Java document models.

Jdom

Simplifying XML Programming with JDOM
JDOM is a unique Java toolkit that uses XML for rapid development of XML applications. Its design includes the syntax and even semantics of the Java language. But is it better than the existing--more standard--XML APL? Once we have seen some examples and explained the design goals of this popular open source project, you can judge for yourself.

dom4j

Parsing XML using dom4j
This article describes how to use the parser contained in DOM4J to create and modify an XML document.

JAXP (Java API for XML parsing)

JAXP: Sun's Java API for XML parsing
This article explains the basic concepts of JAXP, demonstrates why XML parsing needs to be JAXP, and shows how to easily change the parser used by JAXP.

JAXP: Sun's Java API for XML version parsing,1.1
This article analyzes the updated version of the SAX and DOM standard Support 1.1,JAXP 1.1 provides Java and XML developers with an indispensable tool for writing vendor-independent code that parses and transforms XML documents.

New features of JAXP 1.3, part 1th
This article provides a brief introduction to the JAXP specification, detailing the changes in the Javax.xml.parsers package, and also discusses the powerful schema buffering and validation framework.

New features of JAXP 1.3, part 2nd
This article will continue the 1th part of the discussion to explore the various new features added in the JAXP 1.3 release.

JAXP Comprehensive Introduction, part 1th
Java API for XML processing (JAXP) allows you to validate, parse, and transform XML using several different APIs. The JAXP provides both ease of use and developer neutrality. This article shows you how to take advantage of the parsing and validation features of the API.

JAXP Comprehensive Introduction, part 2nd
This article shows how to use JAXP to transform XML documents and how to cache XSL style sheets for optimal performance.

StAX (streaming API for XML)

Parsing XML series using StAX

    • Part 1th: Introduction to streaming API for XML (StAX)
      Streaming API for XML (StAX) is the latest standard for processing XML in the Java (TM) language. As a stream-oriented approach, it outperforms other methods, such as DOM and SAX, both in terms of performance and usability. This article briefly introduces StAX and its pointer-based API for processing XML.

    • Part 2nd: Pull parsing and events
      This article further discusses the event-based iterator API and its benefits for Java developers.

    • Part 3rd: Using custom events and writing XML
      This article describes a custom technology that uses application-defined events, and you will also see how to create custom event classes and use them in conjunction with an event iterator-based API to process XML.

XJ (XML enhancements for Java)

Simplifying XML processing with XJ
Extend Java technology with best-in-class support for XML, XPath, and XML schemas, making XML processing applications easier to write, more robust, and more efficient. This article provides a comprehensive introduction to XML enhancements for Java (XJ), a set of language extensions that add direct support to XML in the Java programming language. The authors of this article are members of the XJ group.

XML validation

JAXP Verification
Improved, JAXP in Java 5.0 provides Java developers with an industrial-strength XML validation solution. This article describes this new API in detail, including basic features and more advanced features.

XML validation API for the Java language
Java 5 (TM) adds a unified validation application programming Interface (API) to compare documents with patterns written in this or that language. This article understands this XML validation API.

Tutorial: XML Schema Validation in Xerces-java 2
Xerces-java 2.0 provides complete support for the XML Schema of the consortium. This tutorial will walk you through the process of using Xerces-java 2.0 for schema validation.

Advanced XML Validation
This article explains the cases of validating documents using XSLT and Java extensions, and provides practical guidance and code examples.

Xpath

Compute XPath from the Java platform
This article describes how to handle XML through the XQuery API for Java, rather than techniques such as SAX, DOM, JDOM, JAXP, and so on.

The XPath API for the Java language
Elliotte Rusty Harold An example of the new XPath API for Java 5.

Jdom/xpath Programming Guide
This article describes the benefits of JDOM and XPATH, and the combination of both for XML programming.

Tutorial: Using XPath to locate specific parts of an XML document, part 1th
This tutorial starts with an example of the basics of XPath, including selectors and their semantics.

Tutorial: Using XPath to locate specific parts of an XML document, part 2nd
The 2nd part of this tutorial focuses on how to use predicates and predicate matching in XPath. Discusses the various XPath selectors and how to perform a specific or generalized search according to your needs.

Xquery

Using XQuery in a Java environment
The XQuery API makes querying and searching XML documents very easy, and Sun's XQuery API for Java provides this capability for Java applications.

Java Theory and Practice: Using XQuery for screen collection
XQuery is a standard for extracting information from XML documents and currently includes 14 working drafts. While XQuery is primarily focused on finding large, semi-structured document data, it is surprising that XQuery is also very effective for some of the more mundane applications. This article describes how to effectively use XQuery as the screen-gathering engine for HTML.

JavaCC, parse tree, and XQuery syntax, part 1th
After a brief discussion of syntax, parser, and BNF, this article introduces JavaCC, a popular parser generator tool. Starting with the BNF description of the syntax, you will develop a sample code that uses JavaCC to build a custom parser.

JavaCC, parse tree, and XQuery syntax, part 2nd
This article demonstrates using the add-on tool, JJTree, to build a parse tree representation of the same resolution, and to explore how to write Java code to traverse the parse tree at run time to restore its state information and evaluate the expression being parsed.

XSL Transformation Processor

Tutorial: Installing and configuring Xalan-java
This new tutorial steps you through how to install, configure, and test the Xalan-java XSL transformation processor. This includes preparing the environment, setting environment variables, and installing files by getting the appropriate Java virtual machine.

Simple Xalan extension function
The Xalan XSLT processor can invoke almost any Java (TM) class method in the Classpath. Doing so can improve performance, or implement algorithms that can be easily written in the Java language but are difficult to write in XSLT. This article learns the basics of calling Java code from Xalan.

Generating Dynamic Web pages using Java and XSLT
This article discusses two ways to generate dynamic Web pages with Java and XSLT by sending user request parameters from a Java backend program to an XSLT stylesheet that forms a Web page.

XStream

Serializing Java objects to XML using XStream
XML serialization has many uses, including object persistence and data transfer. But some XML serialization techniques can be complex to implement. XStream is a lightweight, easy-to-use open source Java library that serializes Java objects into XML or back again. Learn how to set up XStream, use it to serialize and deserialize objects, and read configuration properties from an XML configuration file.

Data binding

Practical Data Binding Series

  • Involved in the real world
    This article describes the differences between general data binding and data binding in the XML world, as well as round trips, semantic equivalence, and requirements for data-bound packages.

  • Observe JAXB, part 1th
    This article examines the architecture and implementation of Sun JAXB. Explains how JAXB handles the generation of classes and how it affects the XML input and output accepted by the API.

  • Visit JAXB, part 2nd
    This article discusses how to use the JAXB API to generate classes and analyze JAXB's round-trip capabilities. You'll see where the problem is in the process of converting from XML to Java code and back again.

  • JaxMe-Novice in this field
    This article begins an in-depth review of JaxMe, an open source implementation of JAXB.

  • Converting XML using JaxMe
    This article explains how to convert an XML document into a Java class instance, manipulate the underlying XML data, and then transform the modified data into XML. This article will provide you with a detailed JaxMe application knowledge that can be used in your application writing.

  • Who's using this thing, what's the result?
    This article examines the circumstances in which data binding should be used, and describes in detail common programming practices and pitfalls.

  • Dance with the end point
    This article analyzes the endpoint of the application in detail-the part of the application that interprets the data-bound code, and how to write efficient code based on those analyses.

  • Using XPath as the data binding tool, part 1th
    As long as you really understand what XPath is and how it is used, especially in a Java programming environment, it becomes a powerful data-binding tool, often better than traditional data-binding APIs such as JAXB or JaxMe.

  • Using XPath as the data Binding tool, part 2nd
    The 2nd section describes how to create XPath requests, execute requests, and handle the resulting set of nodes, all easily done in a Java environment.

XML in Java: Data binding

    • Part 1th: Code generation methods-JAXB and others
      This article studies several XML data binding methods, including the JAXB standard, which generate code based on the XML Schema or DTD syntax used in the XML document.

    • Part 2nd: Performance
      This article studies the speed and memory usage of several frameworks used in Java for XML data binding, including the JAXB standard, Castor mapping bindings, and other frameworks.

    • Part 3rd: JiBX Architecture
      This article describes the JiBX framework for XML data binding in Java applications.

    • Part 4: Using JiBX
      This article shows how to use the framework of the author's newly created XML data binding in a Java application.

Tutorial: Using JAXB for data binding
In this tutorial, you will learn to use data binding to easily map data stored in XML documents into Java objects and the process of mapping them in turn.

Castor

Using Castor for data binding
This article describes data binding and discusses what makes it so appealing. He then showed the reader how to use the open source Castor framework of Java data binding to handle increasingly complex documents.

Implementing Castor Data Binding

    • Part 1th: Installation and setup of Castor
      This article describes how to download, install, and configure Castor for data binding.

    • Part 2nd: Grouping and reconciling groups of XML
      This article will show you how to convert a Java (TM) class into XML and then transform the XML back into Java code, and how Castor works, and how to ensure that the class is designed to accommodate the API.

    • Part 3rd: Mapping between patterns
      Use Castor to convert data from awkward or inconvenient XML documents to custom Java objects.

    • Part 4: Binding Java objects to SQL database
      Castor can bind data in a Java object directly to a database table. This article describes how to group from Java objects to SQL.

Castor JDO Getting Started
This article introduces you to the basics of using Castor JDO, Castor JDO is an open source data binding framework that is based on pure Java technology.

XMLBeans

Programming with the XMLBeans
This article introduces XMLBeans technology in a simple example, and then steps through the process of compiling and binding, discussing advanced features such as XML cursors, markup, and XQuery expressions.

Receiving events from XMLBeans
XMLBeans is an excellent xml-java data binding technology, but it lacks the ability to change the registration observer for the model. However, you can customize the generated generic Java objects (POJO) to include the necessary interfaces and the notification functionality for changes. Create a Sudoku Rich Client Platform (RCP) gaming application in Eclipse to learn how to use events to validate user input.

Quick

Using Quick to convert between Java objects and XML
Quick is an open source data binding framework that focuses on runtime transformations. This article shows you how to use this framework to quickly and easily transform your Java data into an XML document without the class generation semantics required by other data-binding frameworks.

Zeus

Zeus implementation of Xml-java data binding
Zeus can bind a Java object to an XML file, and binding makes it easier to apply the data in the EE. This paper mainly introduces the compilation and use of Zeus. The DTD and XML files used in the binding process are also described.

Http://www.ibm.com/developerworks/cn/xml/theme/x-java.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.