This comprehensive guide to programming in XML teaches readers how to use XML to create customized tags and addresses standard custom markup languages for science and technology, multimedia, commerce, and other fields. Includes a concise introduction to Java, as well as cutting edge topics such as XQL, SMIL and VoiceXML as well as a real-world e-Commerce case study. Also includes a complete chapter on Web-accessibility that addresses VoiceXML. Provides hundreds of valuable programming tips. For XML programmers and Internet/Web programmers.
"synopsis" may belong to another edition of this title.
Live in fragments no longer. Only connect.
Edward Morgan Forster
Welcome to the exciting world of XML! This book is by an old guy and four young guys. The old guy (HMD; Massachusetts Institute of Technology 1967) has been programming and/or teaching programming for 40 years. The four young guys (PJD; MIT 1991, TRN; MIT 1992, TML; Carnegie Mellon 2001, PS; Northeastern 2000) have each been programming and/or teaching programming for many years. The old guy programs and teaches from experience; the young guys do so from an inexhaustible reserve of energy. The old guy wants clarity; the young guys want performance. The old guy seeks elegance and beauty; the young guys want results. We got together to produce a book we hope you will find informative, challenging and entertaining. Why We Wrote XML How to Program
Today, XML is arguably the hottest technology in the computer industry. Therefore, university professors are eager to incorporate XML into their undergraduate and graduate Internet, Web, e-business and e-commerce curricula. Professionals are eager to use XML in their industrial-strength information-technology applications. Students are highly motivated by the fact that they are learning a leading-edge technology (XML) that will be immediately useful to them as they leave the university environment and head into a world where the Internet and World Wide Web have a massive prominence.
After mastering the material in this book, students will be well prepared to take advantage of the Internet and the Web as they take upper-level courses and venture into the rapidly changing programming world.
XML How to Program is the latest book in the Deitel/Prentice Hall How to Program series. It is distinguished by its focus on XML-based application development using programming languages such as Java, VBScript and Perl.
We have syntax-colored the code throughout the book. The key focus of this book is applications development with XML. Our audiences care about XML processing on the client, XML processing on the server, using XML encoded data as a database, etc.
Many XML books are reference manuals with exhaustive listings of features. That is not our style. We concentrate on creating real, working applications. We provide the live-code™ examples on the CD accompanying this book (and on deitel) so that you can run the applications and see the results.
We are excited about the enormous range of possibilities XML has to offer. We performed extensive research for this book and located hundreds of Internet and Web resources (which we provide as live links on the CD-ROM that accompanies this book and on deitel) to help you learn about XML and its related technologies. These links include general information, tutorials and demonstrations. Please read the tour of the book in Chapter 1 to familiarize yourself with the XML technologies we present.
A cutting-edge technology, XML is constantly evolving. This creates tremendous challenges for us as authors, for our publisher—Prentice Hall, for instructors, and for students and professional people.
We have worked hard to create useful live-code™ examples to help you master XML quickly and effectively. All of the code examples are on the accompanying disk and are available for free download from our Web sites:
deitel prenhall/deitel Teaching Approach
XML How to Program contains a rich collection of examples and exercises drawn from many fields to provide the student with a chance to solve interesting real-world problems. The book concentrates on the principles of good software engineering and stresses clarity. We avoid arcane terminology and syntax specifications in favor of teaching by example. The book is written by educators who spend most of their time writing about and teaching edge-of-the-practice programming topics.
Live-Code™ Teaching Approach
The book is loaded with live-code™ examples. This is the focus of the way we teach and write about programming, and the focus of our multimedia Cyber Classrooms and Web-Based Training Courses as well. Each new concept is presented in the context of a complete, working program immediately followed by one or more windows showing the program's input/output dialog. We call this style of teaching and writing our live-code™ approach. We use programming languages to teach programming languages. Reading these programs is much like entering and running them on a computer.
World Wide Web Access
All of the code for XML How to Program (and our other publications) is on the Internet free for download at the Deitel & Associates, Inc. Web site -- deitel
Please download all the code and run each program as you read the text. Make changes to the code examples and immediately see the effects of those changes. It is a great way to learn programming. Note: You must respect the fact that this is copyrighted material. Feel free to use it as you study, but you may not republish any portion of it in any form without explicit permission from Prentice Hall and the authors.
Each chapter begins with a statement of Objectives. This tells students what to expect and gives them an opportunity, after reading the chapter, to determine if they have met these objectives. It is a confidence builder and a source of positive reinforcement.
The learning objectives are followed by quotations. Some are humorous, some are philosophical, and some offer interesting insights. Our students enjoy relating the quotations to the chapter material. Many of the quotations are worth a "second look" after you read each chapter.
The chapter Outline helps students approach the material in top-down fashion. This, too, helps students anticipate what is to come and set a comfortable and effective learning pace.
Example XML documents (with Program Outputs)
We present features in the context of complete, working XML documents. This is the focus of our teaching and our writing. We call it our live-code™ approach. Each Web document is followed by the outputs produced when the document is rendered in a Web browser (We use both Microsoft's Internet Explorer 5 and Netscape 6) and its scripts are executed. This enables students to confirm that the Web pages are rendered as expected. Reading the book carefully is much like entering the code and rendering these documents on a computer. The documents range from just a few lines of code to substantial examples with several hundred lines of code. Students should download all the code for the book from our Web site, and run each program while studying that program in the text.
An abundance of charts, line drawings and program outputs is included.
We have included programming tips to help students focus on important aspects of program development. We highlight these tips in the form of Good Programming Practices, Common Programming Errors, Testing and Debugging Tips, Performance Tips, Portability Tips, Software Engineering Observations and Look-and-Feel Observations. These tips and practices represent the best we have gleaned from a total of almost eight decades of programming and teaching experience. One of our students—a mathematics major—told us that she feels this approach is like the highlighting of axioms, theorems and corollaries in mathematics books; it provides a foundation on which to build good software.
Good Programming Practices
Good Programming Practices are highlighted in the text. They call the students attention to techniques that help produce better programs. When we teach introductory courses to nonprogrammers, we state that the "buzzword" of each course is "clarity, " and we tell the students that we will highlight (in these Good Programming Practices) techniques for writing programs that are clearer, more understandable and more maintainable. Common Programming Error
Students learning a language—especially in their first programming course—tend to make certain kinds of errors frequently. Focusing on these Common Programming Errors helps students avoid making the same errors. It also helps reduce long lines outside instructors' offices during office hours! Performance Tips
In our experience, teaching students to write clear and understandable programs is by far the most important goal for a first programming course. But students want to write the programs that run the fastest, use the least memory, require the smallest number of keystrokes, or dazzle in other nifty ways. Students really care about performance. They want to know what they can do to "turbo charge" their programs. So we have include Performance Tips to highlight opportunities for improving program performance. Portability Tips
Software development is a complex and expensive activity. Organizations that develop software must often produce versions customized to a variety of computers and operating systems. So there is a strong emphasis today on portability, i.e., on producing software that will run on a variety of computer systems with few, if any, changes. Achieving portability requires careful and cautious design. There are many pitfalls. We include Portability Tips to help students write portable code. Software Engineering Observations
The Software Engineering Observations highlight techniques, architectural issues and design issues, etc. that affect the architecture and construction of software systems, especially large-scale systems. Much of what the student learns here will be useful in upper-level courses and in industry as the student begins to work with large, complex real-world systems. Testing and Debugging Tips
This "tip type" may be misnamed. When we first decided to incorporate Testing and Debugging Tips, we thought these tips would be suggestions for testing programs to expose bugs and suggestions for removing those bugs. In fact, most of these tips tend to be observations about programming capabilities and features that prevent bugs from getting into programs in the first place. Look-and-Feel Observations
We provide Look-and-Feel Observations to highlight graphical user interface (GUI) conventions. These observations help students design their own graphical user interfaces to conform with industry norms.
Each chapter ends with additional pedagogical devices. We present a thorough, bullet-list-style Summary of the chapter. This helps the students review and reinforce key concepts.
We include in a Terminology section an alphabetized list of the important terms defined in the chapter—again, further reinforcement.
Self-Review Exercises and Answers
Extensive self-review exercises and answers are included for self-study. This gives the student a chance to build confidence with the material and prepare for the regular exercises. Students should attempt all the self-review exercises and check their answers.
Exercises (Solutions in Instructor's Manual)
Each chapter concludes with a set of exercises including simple recall of important terminology and concepts; writing individual statements; writing small portions of XML documents and program; and writing complete XML documents. Instructors can use these exercises to form homework assignments, short quizzes and major examinations. The solutions for most of the exercises are included in the Instructor's Manual and the Instructor's CD available only to instructors through their Prentice-Hall representatives. NOTE: Please do not write to us requesting the instructor's manual. Distribution of this publication is strictly limited to college professors teaching from the book. Instructors may obtain the solutions manual only from their regular Prentice Hall representatives. We regret that we cannot provide the solutions to professionals. Solutions to approximately half of the exercises are included on the XML Multimedia Cyber Classroom CD (available in bookstores and computer stores; please see the last few pages of this book or visit our Web site at deitel for ordering instructions). If you purchased this book as part of The Complete XML Training Course, you should have also received the XML Multimedia Cyber Classroom CD. If you purchased only the book, you can purchase the Cyber Classroom CD separately—please see the ordering instructions at the end of the book.
We have included an extensive Index at the back of the book. This helps the student find any term or concept by keyword. The Index is useful to people reading the book for the first time and is especially useful to practicing programmers who use the book as a reference. The terms in the Terminology sections generally appear in the Index (along with many more index items from each chapter). Students can use the Index in conjunction with the Terminology sections to be sure they have covered the key material of each chapter.
"Double Indexing" of Live-Code™ Examples and Exercises
XML How to Program has many live-code™ examples. We have "double indexed" each of the live-code™ examples. For every source-code program in the book, we took the figure caption and indexed it both alphabetically and as a subindex item under "Examples." This makes it easier to find examples using particular features.
An extensive bibliography of books, articles and online documentation is included to encourage further reading. Software Included with XML How to Program
The CD-ROM at the end of this book contains a variety of software, including Microsoft Internet Explorer 5, Apache Xalan (for Java), FOP and Xerces, W3C Amaya Web browser and Sun Microsystems' JAXP. The CD also contains the book's code examples and an HTML Web page with links to the Deitel & Associates, Inc. Web site, the Prentice Hall Web site and the many Web sites listed in the Web resources sections of the chapters. If you have access to the Internet, the Web page on the CD can be loaded into your World Wide Web browser to give you quick access to all the resources.
If you have any questions about using this software, please read the introductory documentation on the CD-ROM. Additional information is available at our Web site: deitel. We do not provide technical support for the software application programs. However, if you have any technical questions about the installation of the CD, please email media.support@pearsoned. They will respond promptly. XML Programming Multimedia Cyber Classroom and The
Complete XML Programming Training Course
We have prepared an optional interactive, CD-ROM-based, software version of XML How to Program called the XML Multimedia Cyber Classroom. It is loaded with features for learning and reference. The Cyber Classroom is wrapped with the textbook at a discount in The Complete XML Training Course. If you already have the book and would like to purchase the XML Multimedia Cyber Classroom separately, please call 1-800-811-0912 and ask for ISBN# 0-13-089555-5.
The CD has an introduction with the authors overviewing the Cyber ClassrFrom the Back Cover:
The authoritative DEITEL™ LIVE-CODE™ introduction to
This new book by the world's leading programming-language textbook authors carefully explains XML-based systems development, including programming multi-tier, client/server, databaseoriented, Internet and World-Wide-Web-based applications.
Dr. Harvey M. Deitel and Paul J. Deitel are the principals of Deitel & Associates, Inc., the internationally recognized corporate training and content-creation organization specializing in Java™, C++, C, C#, Visual Basic®, XML, Python, Perl, ASP, Internet, World Wide Web and object technologies. The Deitels are also the authors of the world's #1 Java and C++ textbooks, Java How to Program, 3/e and C++ How to Program, 3/e.
In XML How to Program, the Deitels and their colleagues, Tern R. Nieto, Ted Lin and Praveen Sadhu discuss topics you need to build complete, working XML-based systems including:
XML How to Program includes extensive pedagogic features:
XML How to Program is the centerpiece of a complete family of resources for teaching and learning how to build real, working XML-based systems, including Web sites (www.deitel.com and www.prenhall.com/deitel) with the book's code examples and other information for faculty, students and professionals; optional interactive CDROM ( XML Multimedia Cyber Classroom ) containing thousands of hyperlinks, text search, audio walkthroughs of the hundreds of code examples and solutions to about half the exercises in the book—and e-mail access to the authors at email@example.com
For information on worldwide corporate on-site seminars and Webbased training offered by Deitel & Associates, Inc., visit: www.deitel.com
For information on current and forthcoming Deitel/Prentice Hall publications including How to Program Series books, Multimedia Cyber Classrooms, Complete Training Courses (that include Deitel books and Cyber Classrooms) and Web-Based Training Courses please see the last few pages of this book.
"About this title" may belong to another edition of this title.
Book Description Prentice Hall, 2000. Paperback. Book Condition: New. Edition Unstated. Bookseller Inventory # DADAX0130284173
Book Description Book Condition: Brand New. Book Description:Prentice Hall. PAPERBACK. Book Condition: New. 0130284173 Brand New,Softcover,International Edition,Cover & ISBN may be different from US edition But Contents are same as US Edition.Printed in English Language,Prompt shipping by USPS,UPS,DHL,Fedex.Exceptional customer Service,Satisfaction Guaranteed. Bookseller Inventory # ABESTTND2940
Book Description Softcover. Book Condition: New. Brand New; Shrink Wrapped; Paperback; Black & White or Color International Edition. ISBN and Cover page may differ but similar contents as US edition. GET IT FAST in 3-5 business days by DHL/FEDEX with tracking number. Books printed in English. No shipping to PO Box/APO/FPO address. In some instances the international textbooks may have different end chapter case studies and exercises. International Edition Textbooks may bear a label "Not for sale in the U.S. or Canada" and "Content may different from U.S. Edition" - printed only to discourage U.S. students from obtaining an affordable copy. The U.S. Supreme Court has asserted your right to purchase international editions, and ruled on this issue. Access code or CD is not provided with these editions, unless specified. We may ship the books from multiple warehouses across the globe, including India depending upon the availability of inventory storage. Customer satisfaction guaranteed. Bookseller Inventory # GFI1424480
Book Description Pearson. PaperBack. Book Condition: Brand New. International Edition. International Edition, Cover & ISBN may be different from US edition, PAPERBACK. Book Condition: New. Brand New,Softcover,No Access code & No context dvd, But Contents are same as US Edition. Printed in English Language, Prompt shipping by USPS/,UPS/,DHL/,FedEx. Exceptional customer Service, Satisfaction Guaranteed. We may ship the books from Asian regions for inventory purpose. "Special Note" We do provide service on APO BOX & PO BOX addresses only in usa. Bookseller Inventory # Aaddi21799
Book Description Book Condition: New. This is an International Edition Brand New Paperback Same Title Author and Edition as listed. ISBN and Cover design differs. Similar Contents as U.S Edition. Standard Delivery within 6-14 business days ACROSS THE GLOBE. We can ship to PO Box address in US. International Edition Textbooks may bear a label "Not for sale in the U.S. or Canada" or "For sale in Asia only" or similar restrictions- printed only to discourage students from obtaining an affordable copy. US Court has asserted your right to buy and use International edition. Access code/CD may not provided with these editions. We may ship the books from multiple warehouses across the globe including Asia depending upon the availability of inventory. Printed in English. Customer satisfaction guaranteed. Bookseller Inventory # RU_9788131716854
Book Description Pearson. Book Condition: New. 0130284173 This is an International Edition. Brand New, Paperback, Delivery within 6-14 business days, Similar Contents as U.S Edition, ISBN and Cover design may differ, printed in Black & White. Choose Expedited shipping for delivery within 3-8 business days. We do not ship to PO Box, APO , FPO Address. In some instances, subjects such as Management, Accounting, Finance may have different end chapter case studies and exercises. International Edition Textbooks may bear a label "Not for sale in the U.S. or Canada" and "Content may different from U.S. Edition" - printed only to discourage U.S. students from obtaining an affordable copy. The U.S. Supreme Court has asserted your right to purchase international editions, and ruled on this issue. Access code/CD is not provided with these editions , unless specified. We may ship the books from multiple warehouses across the globe, including India depending upon the availability of inventory storage. Customer satisfaction guaranteed. Bookseller Inventory # UA9780130284174
Book Description Pearson. PAPERBACK. Book Condition: New. 0130284173 New Book. International Edition with great quality. Fast delivery is guaranteed!!. Bookseller Inventory # INDMRK-9788131716854
Book Description Softcover. Book Condition: Brand New. .. Black & White or color International Edition. ISBN and front cover may be different, but contents are same as the US edition. Book printed in English. GET IT FAST within 3-5 business days by DHL/FedEx/Aramex and tracking number will be uploaded into your order page within 24-48 hours. Territorial restrictions may be printed on the book. No shipping to PO BOX, APO, FPO addresses. Kindly provide day time phone number in order to ensure smooth delivery. 100% Customer satisfaction guaranteed!. . Bookseller Inventory # BD007619
Book Description Prentice Hall, 2000. Paperback. Book Condition: New. book. Bookseller Inventory # 0130284173