Copyright


Copyright

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Addison-Wesley was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals.

The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.

The publisher offers discounts on this book when ordered in quantity for bulk purchases and special sales. For more information, please contact:

U.S. Corporate and Government Sales

(800) 382-3419

corpsales@pearsontechgroup.com

For sales outside of the U.S., please contact:

International Sales

(317) 581-3793

international@pearsontechgroup.com

Visit Addison-Wesley on the Web: www.awprofessional.com

Library of Congress Cataloging-in-Publication Data

Harold, Elliotte Rusty.

Processing XML with Java : a guide to SAX, DOM, JDOM, JAXP, and TrAX / Elliotte Rusty Harold.

p. cm.

Includes bibliographical references and index.

ISBN 0-201-77186-1 (alk. paper)

1. XML (Document markup language) 2. Java (Computer program language) I. Title.

QA76.76.H94 H337 2003

005.7'2dc21

2002028190

Copyright 2003 by Elliotte Rusty Harold

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise , without the prior consent of the publisher. Printed in the United States of America. Published simultaneously in Canada.

For information on obtaining permission for use of material from this work, please submit a written request to:

Pearson Education, Inc.

Rights and Contracts Department

75 Arlington Street, Suite 300

Boston, MA 02116

Fax: (617) 848-7047

Text printed on recycled paper

1 2 3 4 5 6 7 8 9 10CRS0605040302

First printing, November 2002

Dedication

In memory of all the victims of the attacks on September 11, 2001


Praise for Elliotte Rusty Harold's Processing XML with Java

"The sophistication and language are very appropriate for Java and XML application developers. You can tell by the way the author writes that he too is a developer. He delves very deeply into the topics and has really taken things apart and investigated how they work. I especially like his coverage of 'gotchas,' pitfalls, and limitations of the technologies."

John Wegis, Web Engineer, Sun Microsystems, Inc .

"Elliotte has written an excellent book on XML that covers a lot of ground and introduces current and emerging technologies. He helps the novice programmer understand the concepts and principles of XML and related technologies, while covering the material at a level that's deep enough for the advanced developer. With a broad coverage of XML technologies, lots of little hints, and information I haven't seen in any other book on the topic, this work has become a valuable addition to my technical library."

Robert W. Husted, Member, Technical Staff, Requisite Technology, Inc .

"The code examples are well structured and easy to follow. They provide real value for someone writing industrial-strength Java and XML applications. The time saved will repay the cost of this book a hundred times over.

"The book also contains more of the pearls of wisdom we've come to expect from Elliotte Rusty Haroldthe kind of pointers that will save developers weeks, if not months , of time."

Ron Weber, Independent Software Consultant