ARRAY(0xc13c11e0)
Pro PHP XML and Web Services and over one million other books are available for Amazon Kindle. Learn more

Vous voulez voir cette page en français ? Cliquez ici.


or
Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Start reading Pro PHP XML and Web Services on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Pro PHP XML and Web Services [Hardcover]

Robert Richards

List Price: CDN$ 73.04
Price: CDN$ 57.58 & FREE Shipping. Details
You Save: CDN$ 15.46 (21%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Usually ships within 4 to 6 weeks.
Ships from and sold by Amazon.ca. Gift-wrap available.
‹  Return to Product Overview

Table of Contents

Robert Richards Pro PHP XML and Web Services Pro PHP XML and Web Services Copyright (c) 2006 by Robert Richards All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. ISBN-13: 978-1-59059-633-3 ISBN-10: 1-59059-633-1 Library of Congress Cataloging-in-Publication data is available upon request. Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1 Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Lead Editor: Matt Wade Technical Reviewers: Christian Stocker, Adam Trachtenberg Editorial Board: Steve Anglin, Dan Appleman, Ewan Buckingham, Gary Cornell, Jason Gilmore, Jonathan Hassell, James Huddleston, Chris Mills, Matthew Moodie, Dominic Shakeshaft, Jim Sumser, Matt Wade Project Manager: Kylie Johnston Copy Edit Manager: Nicole LeClerc Copy Editor: Kim Wimpsett Assistant Production Director: Kari Brooks-Copony Production Editor: Kelly Gunther Compositor: Linda Weidemann, Wolf Creek Press Proofreader: Nancy Sixsmith Indexer: Jan Wright Artist: Kinetic Publishing Services, LLC Cover Designer: Kurt Krames Manufacturing Director: Tom Debolski Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail orders-ny@springer-sbm.com, or visit http://www.springeronline.com. For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219, Berkeley, CA 94710. Phone 510-549-5930, fax 510-549-5939, e-mail info@apress.com, or visit http://www.apress.com. The information in this book is distributed on an "as is" basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. The source code for this book is available to readers at http://www.apress.com in the Source Code section. This book is dedicated to my wife and best friend, Julie. Thank you for your patience, support, and encouragement at the times I most needed it. Contents About the Author ... ix About the Technical Reviewers ... x Acknowledgments ... xi Introduction ... xii -CHAPTER 1 Introduction to XML and Web Services ... 1 Exploring the History of XML ... 2 Using XML in the Real World ... 4 Introducing Service Oriented Architecture and Web Services ... 9 Defining Common Terms and Acronyms ... 14 Conclusion ... 14 -CHAPTER 2 XML Structure ... 15 Introducing Characters ... 15 Understanding Basic Layout ... 18 Understanding Basic Syntax ... 20 Using Namespaces ... 29 Using IDs, IDREF/IDREFS, and xml:id ... 36 Using xml:space and xml:lang ... 41 Understanding XML Base... 42 Conclusion ... 43 -CHAPTER 3 Validation... 45 Introducing Validation ... 45 Introducing Document Type Definitions ... 46 Using XML Schemas ... 71 Using RELAX NG ... 100 Conclusion ... 121 -CHAPTER 4 XPath, XPointer, XInclude, and the Future ... 123 Introducing XPath ... 123 Introducing XPointer ... 146 iii Introducing XInclude ... 151 Examining the Future of XML ... 157 Conclusion ... 161 -CHAPTER 5 PHP and XML ... 163 Introducing XML in PHP 5 ... 163 Configuring libxml Support ... 167 Introducing Encoding ... 168 Figuring Out the libxml2 Version ... 172 Introducing Parser Options ... 173 Introducing PHP Streams ... 174 Performing Error Handling ... 177 Conclusion ... 179 -CHAPTER 6 Document Object Model (DOM) ... 181 Introducing the DOM... 181 Using the DOM Extension... 188 Performing Validation ... 214 Using XPath ... 216 Extending Classes ... 219 Common Questions, Misconceptions, and Problems ... 223 Migrating from domxml to the DOM Extension ... 228 Seeing Some DOM Examples ... 230 Conclusion ... 237 -CHAPTER 7 SimpleXML ... 239 Introducing SimpleXML ... 239 Using SimpleXML ... 239 Using Namespaces in SimpleXML ... 258 Using XPath ... 260 Seeing Some Examples in Action ... 262 Conclusion ... 268 -CHAPTER 8 Simple API for XML (SAX) ... 269 Introducing SAX ... 269 Using the xml Extension ... 270 Migrating from PHP 4 to PHP 5 ... 300 -CONTENTS iv Seeing Some Examples in Action ... 306 Conclusion ... 310 -CHAPTER 9 XMLReader ... 311 Introducing XMLReader ... 311 Using XMLReader ... 314 Exporting to DOM Objects ... 328 Dealing with Namespaces ... 328 Performing Validation ... 333 Seeing Some Examples in Action ... 335 Conclusion ... 340 -CHAPTER 10 Extensible Stylesheet Language Transformations (XSLT) ... 341 Introducing XSL and XSLT ... 341 Introducing the XSL Extension... 387 Using the XSL Extension... 390 Using Parameters in XSL ... 393 Calling PHP Functions from XSL ... 395 Seeing Some Examples in Action ... 399 Conclusion ... 408 -CHAPTER 11 Effective and Efficient Processing ... 409 Looking at the Pros and Cons of Parsers ... 409 Optimizing Parsing and Processing ... 426 Combining Technologies... 433 Conclusion ... 439 -CHAPTER 12 XML Security ... 441 Introducing XML Security ... 441 Introducing Basic Security ... 442 Introducing Enterprise Security... 448 Introducing Canonical XML ... 449 Introducing Exclusive XML Canonicalization... 456 Introducing XML Signatures ... 460 Introducing XML Encryption... 474 Conclusion ... 489 -CONTENTS v -CHAPTER 13 PEAR and XML ... 491 What Is PEAR? ... 491 Using PEAR ... 492 Using PEAR and XML Together ... 493 Conclusion ... 519 -CHAPTER 14 Content Syndication: RSS and Atom... 521 Understanding the Evolution of RSS and Atom... 521 Introducing RSS 1.0: RDF Site Summary ... 523 Introducing RSS 2.0: Really Simple Syndication ... 534 Introducing Atom 1.0 ... 542 Choosing a Format ... 550 Seeing Some Examples in Action ... 551 Using PEAR XML_RSS ... 563 Conclusion ... 566 -CHAPTER 15 Web Distributed Data Exchange (WDDX) ... 567 Introducing WDDX ... 567 Understanding the Structure of WDDX... 569 Using WDDX ... 576 Seeing Some Examples in Action ... 583 Using PEAR XML_WDDX... 589 Conclusion ... 593 -CHAPTER 16 XML-RPC ... 595 Introducing XML-RPC ... 595 Exploring the XML-RPC Structure... 596 Using xmlrpc in PHP ... 608 Using XML_RPC in PEAR ... 622 Seeing Some Examples in Action ... 629 Conclusion ... 631 -CHAPTER 17 Representational State Transfer (REST) ... 633 Introducing REST ... 633 Introducing REST Web Services ... 634 Creating a REST Web Service ... 639 Introducing the Yahoo Web Services ... 646 -CONTENTS vi Introducing the Amazon Web Services... 660 Conclusion ... 672 -CHAPTER 18 SOAP ... 673 Introducing the Web Services Description Language (WSDL) ... 673 Introducing SOAP... 696 Using the SOAP Extension ... 706 Using PEAR SOAP ... 734 Seeing Some Examples in Action ... 735 Conclusion ... 750 -CHAPTER 19 Universal Description, Discovery, and Integration (UDDI)... 751 Introducing UDDI ... 751 Introducing Data Structures... 753 Introducing the SOAP API ... 764 Accessing the SAP UDDI Registry via SOAP ... 768 Conclusion ... 780 -CHAPTER 20 PEAR and Web Services ... 781 Using Services_Amazon... 781 Using Services_Delicious... 785 Using Services_Ebay ... 786 Using Services_Google... 786 Using Services_Technorati ... 789 Using Services_Weather ... 793 Using Services_Webservice ... 797 Using Services_Yahoo ... 802 Using SOAP... 806 Using UDDI ... 807 Using XML_RPC... 808 Conclusion ... 809 -CHAPTER 21 Other XML Technologies and Extensions ... 811 Using XMLWriter ... 811 Using SDO XML Data Access Service ... 820 Introducing Asynchronous JavaScript Technology and XML (Ajax) ... 826 -CONTENTS vii Introducing Wireless Application Protocol (WAP) ... 830 Conclusion ... 838 -APPENDIX A XML Schema Built-in Data Types Reference ... 839 Type Definition ... 839 Primitive Types... 839 Derived Types... 841 -APPENDIX B Extension APIs ... 845 libxml ... 845 xml ... 847 XMLReader ... 849 SimpleXML ... 852 DOM... 854 XSL... 866 SOAP ... 867 XMLWriter ... 871 -APPENDIX C Features and Changes in PHP 6 ... 875 xml Extension... 875 XMLReader Extension... 876 SimpleXML Extension ... 879 DOM Extension... 883 -INDEX ... 889 -CONTENTS viii

‹  Return to Product Overview