Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

XML and Related Technologies certification prep, Part 3: XML processing

Explore how to parse and validate XML documents plus how to use XQuery

Mark Lorenz (mlorenz@nc.rr.com), Senior Application Architect, Hatteras Software, Inc.
Photo of Mark Lorenz
Mark Lorenz is the founder of Hatteras Software, an object-oriented consulting firm, and the author of multiple books on software development. He is certified in object-oriented analysis and design (OOAD), XML, RAD, and Java. He uses XHTML, Web services, Ajax, JSF, Spring, BIRT, and related Eclipse-based tools to develop Java enterprise applications. You can read Mark's blog on technology.

Summary:  Parsing and validation represent the core of XML. Knowing how to use these capabilities well is vital to the successful introduction of XML to your project. This tutorial on XML processing teaches you how to parse and validate XML files as well as use XQuery. It is the third tutorial in a series of five tutorials that you can use to help prepare for the IBM certification Test 142, XML and Related Technologies.

View more content in this series

Date:  26 Sep 2006
Level:  Intermediate PDF:  A4 and Letter (505 KB | 41 pages)Get Adobe® Reader®

Activity:  10840 views
Comments:  

Before you start

In this section, you'll find out what to expect from this tutorial and how to get the most out of it.

About this series

This series of five tutorials helps you prepare to take the IBM certification Test 142, XML and Related Technologies, to attain the IBM Certified Solution Developer - XML and Related Technologies certification. This certification identifies an intermediate-level developer who designs and implements applications that make use of XML and related technologies such as XML Schema, Extensible Stylesheet Language Transformation (XSLT), and XPath. This developer has a strong understanding of XML fundamentals; has knowledge of XML concepts and related technologies; understands how data relates to XML, in particular with issues associated with information modeling, XML processing, XML rendering, and Web services; has a thorough knowledge of core XML-related World Wide Web Consortium (W3C) recommendations; and is familiar with well-known, best practices.

Anyone working in software development for the last few years is aware that XML provides cross-platform capabilities for data, just as the Java® programming language does for application logic. This series of tutorials is for anyone who wants to go beyond the basics of using XML technologies.


About this tutorial

This tutorial is the third in the "XML and Related Technologies certification prep" series that takes you through the key aspects of effectively using XML technologies on Java projects. This third tutorial focuses on XML processing -- that is, how to parse and validate XML documents. It lays the groundwork for Part 4, which focuses on transformation, including the use of XSLT, XPath, and Cascading Style Sheets (CSS).

This tutorial is written for Java programmers who have a basic understanding of XML and whose skills and experience are at a beginning to intermediate level. You should have a general familiarity with defining, validating, and reading XML documents, as well as a working knowledge of the Java language.


Objectives

After completing this tutorial, you will know how to:

  • Parse XML documents using the Simple API for XML 2 (SAX2) and Document Object Model 2 (DOM2) parsers
  • Validate XML documents against Document Type Definitions (DTDs) and XML Schemas
  • Access XML content from databases using XQuery

Prerequisites

This tutorial is written for developers who have a background in programming and scripting and who have an understanding of basic computer-science models and data structures. You should be familiar with the following XML-related, computer-science concepts: tree traversal, recursion, and reuse of data. You should be familiar with Internet standards and concepts, such as Web browser, client-server, documenting, formatting, e-commerce, and Web applications. Experience designing and implementing Java-based computer applications and working with relational databases is also recommended.


System requirements

To run the examples in this tutorial, you need a Linux® or Microsoft® Windows® box with at least 50MB of free disk space and administrative access to install software. The tutorial uses, but does not require, the following software:

  • Java software development kit (JDK) 1.4.2 or later
  • Eclipse 3.1 or later
  • XMLBuddy 2.0 or later (Note: Some portions of the series use capabilities of XMLBuddy Pro, which is not free.)

See Resources for links to download the above software

1 of 8 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=XML
ArticleID=161524
TutorialTitle=XML and Related Technologies certification prep, Part 3: XML processing
publish-date=09262006
author1-email=mlorenz@nc.rr.com
author1-email-cc=dwxed@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.