XML and SQL: Developing Web Applications / Edition 1

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 95%)
Other sellers (Paperback)
  • All (11) from $1.99   
  • New (2) from $56.56   
  • Used (9) from $1.99   


"Dan's book provides something that the formal standards and development manuals sorely lack: a context that helps developers understand how to use XML in their own projects."
--Tim Kientzle, Independent Software Consultant

XML and SQL: Developing Web Applications is a guide for Web developers and database programmers interested in building robust XML applications backed by SQL databases. It makes it easier than ever for Web developers to create and manage scalable database applications optimized for the Internet.

The author offers an understanding of the many advantages of both XML and SQL and provides practical information and techniques for utilizing the best of both systems. The book explores the stages of application development step by step, featuring a real-world perspective and many examples of when and how each technology is most effective.

Specific topics covered include:

  • Project definition for a data-oriented application
  • Creating a bullet-proof data model
  • DTDs (document type definitions) and the design of XML documents
  • When to use XML, and what parts of your data should remain purely relational
  • Related standards, such as XSLT and XML Schema
  • How to use the XML support incorporated into Microsoft's SQL Server™ 2000
  • The XML-specific features of J2EE™ (Java™ 2 Enterprise Edition)

Throughout this book, numerous concrete examples illustrate how to use each of these powerful technologies to circumvent the other's limitations. If you want to use the best part of XML and SQL to create robust, data-centric systems then there is no better resource than this book.


Read More Show Less

Editorial Reviews

From Barnes & Noble
The Barnes & Noble Review
Relational databases, Daniel K. Appelquist points out, are terrific at some things (data integrity and storage of highly structured data come to mind). XML is great at other things (formatting data, representing unstructured data). They complement each other superbly. Used together, they can help you solve an extraordinary range of web and content management problems.

Appelquist walks you through every stage of building XML/SQL applications, starting with project definition, requirements gathering, abstract data modeling, and application design (with both DTDs and schemas). Of course, much of this is applicable not just to XML/SQL but to a wide range of application development problems, but Appelquist explains it in terms today's web developer or content manager will relate to especially well.

The beauty of XML (and to a lesser degree, SQL) is its platform independence. When it's time to code, Appelquist walks through two entirely different approaches -- one based on Microsoft SQL Server 2000, the other on Java and J2EE application servers. An additional chapter of examples introduces web services, along with key techniques such as content locking and versioning.

Splendidly written and down-to-earth, XML and SQL demystifies the integration of two technologies that were born for each other. (Bill Camarda)

Bill Camarda is a consultant, writer, and web/multimedia content developer with nearly 20 years' experience in helping technology companies deploy and market advanced software, computing, and networking products and services. He served for nearly ten years as vice president of a New Jersey–based marketing company, where he supervised a wide range of graphics and web design projects. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks For Dummies®, Second Edition.

Read More Show Less

Product Details

  • ISBN-13: 9780201657968
  • Publisher: Addison-Wesley
  • Publication date: 12/28/2001
  • Edition description: 1 ED
  • Edition number: 1
  • Pages: 256
  • Product dimensions: 7.40 (w) x 9.20 (h) x 0.60 (d)

Meet the Author

Daniel K. Appelquist is an independent technology consultant specializing in content management and e-business strategy. While at TheStreet.com, he built a content management solution using XML and SQL and then went on to be CTO for TheStreet.co.uk. At E-Doc, he built SGML-based solutions for publishers such as John Wiley & Sons and Macmillan Press to put journals such as Cancer and Nature online. He has spoken at Seybold, Xtech, and other events, and has been active on the Advisory Committee of the W3C and in the Open Group's Mobile Management Forum. In addition, he has served as an advisory member of the ICE protocol group and is on the Advisory Board of Kinecta Corporation.


Read More Show Less

Table of Contents


Who Should Read This Book?

Why Would You Read This Book?

The Structure of This Book.

My Day Job in the Multimodal World.


About the Author.

1. Why XML?

The Lesson of SGML.

What About XML?

Why HTML Is Not the Answer.

The Basics of XML.

Why You Don't Need to Throw Away Your RDBMS.

A Brief Example.

Great! How Do I Get Started?


2. Introducing XML and SQL: A History Lesson of Sorts.

Extensible Markup Language (XML).

Evaluating XML's Design Goals.

Structured Query Language (SQL).

What Is “Relational”?

Fitting It All Together.


3. Project Definition and Management.

An Illustrative Anecdote.

How to Capture Requirements.

CyberCinema: The Adventure Begins.

Requirements Gathering.

User Scenarios.

Functional Requirements Document.

Quality Assurance.

Unit Testing.

Integration Testing.

Project Management.

Dynamic Systems Development Method (DSDM).

Extreme Programming!

The Technical Specification Document.


4 Data Modeling.

Getting Data-Centric.

Show Me the Data!

What Do You Hope to Accomplish?

Making It Visual: Entity Relationship Diagrams.

Roll Film: Back to CyberCinema.

Normalization Equals Power: Defining Relationships.

Keep It Simple: No Really, I Mean It.

Getting Complex: Many-to-One and Many-to-Many Relationships.

Another Layer of Complexity: Adding Media.


5. XML Design.

Carving Your Rosetta Stone.

When to Use XML and When Not to Use It.

Think Like an Archeologist.

Building a DTD.

CyberCinema: The Rosetta Stone Meets the Web.

The Head.

The Body.

Building XML DTDs: Let the Experts Do Hard Stuff.


6. Getting Relational: Database Schema Design.

Knowing When to Let Go.

First Steps.

SQL and XML: The Joys of Partial Decomposition.

Decomposing CyberCinema.

XML Nitro Injection: Adding Reviews.

Link Management.

Selecting What You Need.

Using Link Management to Help Power Suggestions.


7. Related Standards: XSLT, XML Schema, and Other Flora and Fauna.

XSLT: XML Transformers!

So How Does XSLT Work Exactly?

XML Schema: An Alternative to DTDs.

Querying XML Documents.

XML Query.

SQLX: The Truth Is Out There.


8. XML and SQL Server 2000.

Contributed by JJ Kuslich.

Retrieving Data in XML Format.




Communicating with SQL Server over the Web.

Under the Hood.

Retrieving Data in XML Format-Continued.

SQL Queries in URLs.

Template Files.

XPath Queries.

HTTP Post Queries.

XML Views.

Defining XML Views.

Let SQL Server Do the Work.

Working with XML Documents.



9. Java Programming with XML and SQL.

Dealing with XML in Java.

Building Java Objects for XML Instances with DOM.

Using SAX Events to Drive XML Partial Decomposition.

Invoking XSLT Transformations.

Designing an Entity Bean for Movie Reviews.

To Transform or Not to Transform.



Bean Persistence.

JDBC Advanced Data Types.

On the Near Horizon: XML Data Binding.

J2EE Application Servers.


10. More Examples: Beyond Silly Web Sites.

Building a Web Service.

Corporate Phone Directory.

Stock Quotes.


Taxonomical Structure.

Document Management and Content Locking.

Versioning and Change Management.




Index. 0201657961T11282001

Read More Show Less


This book is about how you can use Extensible Markup Language (XML) and relational databases in the real world to solve real problems (as opposed to the sometimes academic world of standards bodies and other groups that promote standards usage). In other words, you can really use XML--it's not just hype. In this book, you will find concrete examples, insight into the application development life cycle as I've known it, and a discussion of the why, the how, and the where of building applications (with a special focus on Web applications) using the tools of XML and relational databases.

This book is not intended to be a comprehensive guide. It's an overview of the field, packed with good ideas and witty commentary, which should get you started in the right direction. The areas I've focused the most attention on are ones in which I have something useful to say. In other areas, I've provided an overview of concepts, and, instead of reinventing the wheel, I've included URLs that point you to useful and informative Web resources.

Who Should Read This Book?

This book is intended primarily for software developers who are managing small- to medium-scale projects. My experience is mostly from working on small development teams, where resource limitations often dictate that the person writing the requirements for a project is also the engineer in charge of design and coding. This book is written from that perspective. If you work in a larger, more structured team or environment, you may find it strange that I'm talking about requirements gathering in one sentence and data modeling in the next, but this book can also be useful to you, if applied correctly. I've organized the chapters into the different stages of application design so that you can read through the entire book or flip to a particular piece of interest. In either case, you'll come away with something useful.

Familiarity with the concepts of databases and markup languages (specifically, knowledge of HyperText Markup Language--HTML) will make this book easier to understand. If you're new to markup languages and SQL, you'll still find this book helpful in explaining how they can be used together to develop applications. In addition, I recommend you read XML: A Manager's Guide by Kevin Dick (1999) for an overview of the XML language and its features. I also recommend SQL Queries for Mere Mortals: A Hands-On Guide to Data Manipulation in SQL by Michael J. Hernandez (2000).

Why Would You Read This Book?

Good question! I started writing this book after I worked on a content management application at TheStreet.com, which is an online financial news service--essentially an electronic newspaper--complete with journalists, editors, reporters, contributors, and columnists. TheStreet.com's publishing model was "multichannel"; they published their articles to their Web site (one "channel" of publication). They also published to other channels, such as syndicating articles to other sites (Microsoft Network, Yahoo!, and so forth) and to devices (PDAs, cell phones, pagers, what-have-you). This book is a result of my experiences in building a content management strategy for TheStreet.com and an application of everything I learned during that time, combined with in-depth material that I've picked up along the way. This book is best read when you're starting work on a project that has a content management component and you're thinking of using XML and a SQL database.

The Structure of This Book

This book is broken into ten chapters, corresponding roughly to the stages of application design and development.

1. Why XML? Notice I'm not asking the more mundane question, "What is XML?" This chapter instead delves into some specific examples of why XML is useful and why you want to start building systems with it.

2. Introducing XML and SQL: A History Lesson of Sorts. Chapter 2 provides a brief description of XML, its history and structure, and what it brings to the table. A similar discussion of SQL and the rise of the relational database follows.

3. Project Definition and Management. This chapter is a primer on getting the requirements for your system down on paper. It's included because I think this step is important, and I've often seen it done badly. Chapter 3 also discusses thinking about requirements from a perspective of building a "data-oriented" application. This chapter introduces two examples: a simple e-mail application and the CyberCinema Web site.

4. Data Modeling. After you have gathered your requirements, you have to start thinking abstractly about your data. It's a tough world out there, and without a bullet-proof data model to protect you, you're going to wake up one day and realize your life has been a dismal failure.

5. XML Design. You know why you should use XML because you read Chapter 1, but do you know where you should use it? What parts of your data make sense for XML, and what parts should remain purely relational? This chapter discusses the design of your XML documents, focusing on the document type definition (DTD) as a vehicle for this discussion.

6. Getting Relational: Database Schema Design. Now that you have your data model and your XML design, how do you best write a data schema to get the job done? This chapter is brimming with helpful examples.

7. Related Standards: XSLT, XML Schema, XML Query, and Other Flora and Fauna. What do you do with all this XML once you have it? This is where the Extensible Stylesheet Language (XSL) comes into play. XSL can be used to translate XML for display or internal purposes. It can also be leveraged to aid in partial decomposition. XML Schema provides an alternative to DTDs in defining XML document structure. Query languages on the near horizon promise to query XML documents and SQL databases.

8. XML and SQL Server 2000. So how do you take all this XML and relational data and turn it into a real, living, breathing application--one that's actually useful and works? Here's one answer: Use the comprehensive XML support found in Microsoft's SQL Server 2000. This chapter presents a discussion of those features and delves into how you might use them to implement some of the strategies previously discussed.

9. Java Programming with XML and SQL. Another implementation strategy for your XML applications is to build them using the J2EE (Java 2 Enterprise Edition) framework. Chapter 9 introduces this framework and discusses some of its XML-specific features.

10. More Examples: Beyond Silly Web Sites. Chapter 10 provides other concrete examples of how to mix XML and SQL harmoniously.


Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)