Oracle Database 10g XML&SQL—Design, Build & Manage XMLApplications in Java, C,C++ & PL/SQL
Mark V. ScardinaBen Chang
Jinyu Wang
McGraw-Hill/Osborne2100 Powell Street, 10th FloorEmeryville, California 94608U.S.A. To arrange bulk purchase discounts for sales promotions, premiums, or fund-raisers, please contact McGraw-Hill/Osborne at the above address. For information on translations or book distributors outside the U.S.A., please see the International Contact Information page immediately following the index of this book.Copyright 2004 by The McGraw-Hill Companies, Inc. (Publisher). All rights reserved. Printed in the United States of America. Except as permitted under the Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of Publisher.Oracle is a registered trademark of Oracle Corporation and/or its affiliates.Screen displays of copyrighted Oracle software programs have been reproduced herein with the permission of Oracle Corporation and/or its affiliates.1234567890 CUS CUS 01987654ISBN 0-07-222952-7Publisher
Brandon A. NordinVice President & Associate Publisher
Scott RogersAcquisitions Editor
Lisa McClainProject Editors
LeeAnn Pickrell,Lisa Wolters-Broder,Emily WolmanAcquisitions Coordinator
Athena HonoreTechnical Editors
Olivier Le Diouris, Anjana ManianCopy Editor
William McManusProofreader
John GildersleeveIndexer
Irv HershmanComposition
Apollo Publishing Services, Jim KussowIllustrators
Kathleen Edwards, Michael Mueller, Melinda LytleSeries Design
Jani BeckwithCover Series DesignDamore Johann Design, Inc.This book was composed with Corel VENTURA™ Publisher.Information has been obtained by Publisher from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, Publisher, or others, Publisher does not guarantee to the accuracy, adequacy, or completeness of anyinformation included in this work and is not responsible for any errors or omissions or the results obtained from the use of such information.Oracle Corporation does not make any representations or warranties as to the accuracy, adequacy, or completeness of any information contained in this Work, and is not responsible for any errors or omissions.To my family for their understanding, tolerance, and support through the late nights and lost weekends. To my coworkers for accepting without complaint my interruptions for technical help and advice.
—Mark Scardina
To my family for their support.
—Ben Chang
I would like to thank first and foremost my husband, Yong, for his support when I worked on this book. I’d also like to thank my colleagues on the Oracle XML development team who gave me invaluable help.
—Jinyu Wang
About the Authors
Mark V. Scardina is Oracle’s XML Evangelist for Server products and is the Group Product Manager for the CORE and XML Development Group tasked with providing the XML infrastructure components used throughout the Oracle product stack, including the Oracle XML Developer’s Kit. Mark chairs the Oracle XML Standards committee and is an editor on the W3C XSL Working Group. He is a frequent speaker at industry trade shows and conferences, a writer for industry journals and is co-author of Oracle9i XML Handbook and Oracle XML Handbook. Prior to joining Oracle, he worked at Socket Communications and ACE Technologies. He holds a B.S. in Information Systems Management from USF.Mark lives in San Francisco with his wife and twin boys. His hobbies include DanceSport, high-end audio/video, and working on his house.Ben Chang is a 15-year veteran at Oracle Corp., where he heads the CORE and XML Development Group as Director. In addition to working on Oracle6 to Oracle Database 10g releases, he served the longest tenure as Development Release Manager for Oracle 8.0, spanning five releases. He also served three years as chair of Oracle’s C Coding Standards Committee, and he was a W3C DOM Working Group editor. He is co-author of Oracle9i XML Handbook and Oracle XML Handbook. Before coming to Oracle, he worked at IBM Corp., Pacific Bell, Bellcore, and GE Corporate R&D. He holds an M.S. in Electrical Engineering (Computer Systems) from Stanford University and a B.S. in Electrical Engineering and Computer Science from the University of California at Berkeley.Jinyu Wang is a Senior Product Manager for Oracle XML Product management, in charge of the Oracle XML Developer’s Kit, which provides the XML infrastructure components used across Oracle product stacks. As an Oracle Certified Professional with an extensive database background, she leads a variety of projects that successfully apply XML technologies to enterprise business applications. While completing her master’s degree in computer science at the University of Southern California and electrical engineering at Northern Jiaotong University, she worked on artificial intelligence and computer vision, focusing on motion analysis.