Tài liệu XML.NET Developer''''s Guide docx

593 343 0
Tài liệu XML.NET Developer''''s Guide docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

1 YEAR UPGRADE BUYER PROTECTION PLAN Develop and Deliver Enterprise-Critical Applications with XML .NET • Complete Case Studies with Ready-to-Run Source Code and Full Explanations • Hundreds of Developing & Deploying, and Debugging Sidebars, Security Alerts, and FAQs • Complete Coverage of Web Services and the VS.NET Integrated Development Environment (IDE) XML .NET Developer’s Guide Adam Sills Mesbah Ahmed Dotthatcom.com Frank Boumphrey Jonothon Ortiz Technical Editor solutions@syngress.com With more than 1,500,000 copies of our MCSE, MCSD, CompTIA, and Cisco study guides in print, we continue to look for ways we can better serve the information needs of our readers. One way we do that is by listening. Readers like yourself have been telling us they want an Internet-based ser- vice that would extend and enhance the value of our books. Based on reader feedback and our own strategic plan, we have created a Web site that we hope will exceed your expectations. Solutions@syngress.com is an interactive treasure trove of useful infor- mation focusing on our book topics and related technologies. The site offers the following features: ■ One-year warranty against content obsolescence due to vendor product upgrades. You can access online updates for any affected chapters. ■ “Ask the Author” customer query forms that enable you to post questions to our authors and editors. ■ Exclusive monthly mailings in which our experts provide answers to reader queries and clear explanations of complex material. ■ Regularly updated links to sites specially selected by our editors for readers desiring additional reliable information on key topics. Best of all, the book you’re now holding is your key to this amazing site. Just go to www.syngress.com/solutions, and keep this book handy when you register to verify your purchase. Thank you for giving us the opportunity to serve your needs. And be sure to let us know if there’s anything else we can do to help you get the maximum value from your investment. We’re listening. www.syngress.com/solutions 155_XML_NET_FM.qxd 3/7/02 3:01 PM Page i 155_XML_NET_FM.qxd 3/7/02 3:01 PM Page ii 1 YEAR UPGRADE BUYER PROTECTION PLAN XML .NET Developer’s Guide Adam Sills Mesbah Ahmed Dotthatcom.com Frank Boumphrey Jonothon Ortiz Technical Editor 155_XML_NET_FM.qxd 3/7/02 3:01 PM Page iii Syngress Publishing, Inc., the author(s), and any person or firm involved in the writing, editing, or production (collectively “Makers”) of this book (“the Work”) do not guarantee or warrant the results to be obtained from the Work. There is no guarantee of any kind, expressed or implied, regarding the Work or its contents.The Work is sold AS IS and WITHOUT WARRANTY. You may have other legal rights, which vary from state to state. In no event will Makers be liable to you for damages, including any loss of profits, lost savings, or other incidental or consequential damages arising out from the Work or its contents. Because some states do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you. You should always use reasonable care, including backup and other appropriate precautions, when working with computers, networks, data, and files. Syngress Media®, Syngress®,“Career Advancement Through Skill Enhancement®,” and “Ask the Author UPDATE®,” are registered trademarks of Syngress Publishing, Inc. “Mission Critical™,”“Hack Proofing™,” and “The Only Way to Stop a Hacker is to Think Like One™” are trademarks of Syngress Publishing, Inc. Brands and product names mentioned in this book are trademarks or service marks of their respective companies. KEY SERIAL NUMBER 001 PKH4T67VT5 002 ESTRT45RF4 003 BHER6W354N 004 9HD34B3QAN 005 ZR88JN6NVH 006 NTG4R54RM4 007 CG8VHTR46T 008 D6Y9R565MR 009 22N5M4BX6S 010 SD6YH2Y7FC PUBLISHED BY Syngress Publishing, Inc. 800 Hingham Street Rockland, MA 02370 XML .NET Developer’s Guide Copyright © 2002 by Syngress Publishing, Inc. 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 the publisher, with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication. Printed in the United States of America 1 2 3 4 5 6 7 8 9 0 ISBN: 1-928994-47-4 Technical Editor: Jonothon Ortiz Cover Designer: Michael Kavish Acquisitions Editor: Catherine B. Nolan Page Layout and Art by: Reuben Kantor and Indexer: Robert Saigh Shannon Tozier Copy Editor: Beth A. Roberts Distributed by Publishers Group West in the United States and Jaguar Book Group in Canada. 155_XML_NET_FM.qxd 3/7/02 3:01 PM Page iv v Acknowledgments v We would like to acknowledge the following people for their kindness and support in making this book possible. Ralph Troupe, Rhonda St. John, and the team at Callisma for their invaluable insight into the challenges of designing, deploying and supporting world-class enterprise networks. Karen Cross, Lance Tilford, Meaghan Cunningham, Kim Wylie, Harry Kirchner, Kevin Votel, Kent Anderson, Frida Yara, Bill Getz, Jon Mayes, John Mesjak, Peg O’Donnell, Sandra Patterson, Betty Redmond, Roy Remer, Ron Shapiro, Patricia Kelly, Andrea Tetrick, Jennifer Pascal, Doug Reil, and David Dahl of Publishers Group West for sharing their incredible marketing experience and expertise. Jacquie Shanahan, AnnHelen Lindeholm, David Burton, Febea Marinetti, and Rosie Moss of Elsevier Science for making certain that our vision remains worldwide in scope. Annabel Dent and Paul Barry of Elsevier Science/Harcourt Australia for all their help. David Buckland,Wendi Wong, Marie Chieng, Lucy Chong, Leslie Lim, Audrey Gan, and Joseph Chan of Transquest Publishers for the enthusiasm with which they receive our books. Kwon Sung June at Acorn Publishing for his support. Ethan Atkin at Cranbury International for his help in expanding the Syngress program. Jackie Gross, Gayle Voycey, Alexia Penny, Anik Robitaille, Craig Siddall, Darlene Morrow, Iolanda Miller, Jane Mackay, and Marie Skelly at Jackie Gross & Associates for all their help and enthusiasm representing our product in Canada. Lois Fraser, Connie McMenemy, Shannon Russell and the rest of the great folks at Jaguar Book Group for their help with distribution of Syngress books in Canada. 155_XML_NET_FM.qxd 3/7/02 3:01 PM Page v vi Contributors Adam Sills is an Internet Programmer at GreatLand Insurance, a small insurance company parented by Kemper Insurance. He works in a small IT department that focuses on creating applications to expedite business pro- cesses and manage data from a multitude of locations. Previously, he had a small stint in consulting and also worked at a leading B2B eCommerce company designing and building user interfaces to interact with a large- scale enterprise eCommerce application.Adam’s current duties include building and maintaining Web applications, as well as helping to architect, build, and deploy new Microsoft .NET technologies into production use. Adam has contributed to the writing of a number of books for Syngress including ASP .NET Developer’s Guide (ISBN: 1-928994-51-2) and is an active member of a handful of ASP and ASP.NET mailing lists, providing support and insight whenever he can. Todd Carrico (MCDBA, MCSE) is a Senior Database Engineer for Match.com. Match.com is a singles portal for the digital age. In addition to its primary Web site, Match.com provides back-end services to AOL, MSN, and many other Web sites in its affiliate program.Todd specializes in design and development of high-performance, high-availability data architectures primarily on the Microsoft technology. His background includes designing, developing, consulting, and project management for companies such as Fujitsu, Accenture, International Paper, and GroceryWorks.com. In addition to his contribution to C# .NET Web Developer’s Guide (ISBN: 1-928994-50-4),Todd has also contributed chapters to other books in the Syngress .NET Series including the ASP .NET Web Developer’s Guide (ISBN: 1-928994-51-2) and the VB .NET Developer’s Guide (ISBN: 1-928994-48-2).Todd resides in Sachse,Texas with his wife and two children. Greg Hack is a Senior Software Engineer with Allscripts Healthcare Solutions. Greg has over 15 years of experience developing software on platforms ranging from the mainframe to the desktop, using a wide 155_XML_NET_FM.qxd 3/7/02 3:01 PM Page vi vii variety of languages and technologies. Recent work includes a Web-based application that allows patients to view their medical records and a Pocket PC application that delivers clinical information to physicians at the point of care. Greg has also contributed to C# .NET Web Developer’s Guide (ISBN: 1-928994-50-4). Patrick Coelho (MCP) is an instructor at The University of Washington Extension, North Seattle Community College, Puget Sound Center, and Seattle Vocational Institute, where he teaches courses in Web Development (DHTML, ASP, XML, XSLT, C#, and ASP.NET). Patrick is a Co-Founder of DotThatCom.com, a company that provides consulting, online develop- ment resources, and internships for students. He is currently working on a .NET solution with contributing author David Jorgensen and nLogix. Patrick holds a bachelor of science degree from the University of Washington, Bothell. He lives in Puyallup,Washington with his wife, Angela. Patrick is a contributor to Syngress Publishing’s C# .NET Web Developer’s Guide (ISBN: 1-928994-50-4) and the ASP .NET Web Developer’s Guide (ISBN: 1-928994-51-2). David Jorgensen (MCP) is an instructor at North Seattle Community College, University of Washington Extension campus, and Puget Sound Centers. He is also developing courses for Seattle Vocational Institute, which teach .NET and Web development to the underprivileged in the Seattle area. David also provides internship opportunities through his company, DotThatCom.com, which does online sample classes and chapters of books. David holds a bachelor’s degree in Computer Science from St. Martin’s College and resides in Puyallup,Washington, with his wife, Lisa and their two sons, Scott and Jacob. David is a contributor to Syngress Publishing’s C# .NET Web Developer’s Guide (ISBN: 1-928994-50-4) and the ASP .NET Web Developer’s Guide (ISBN: 1-928994-51-2). Joe Dulay (MCSD) is the Vice-President of Technology for the IT Age Corporation. IT Age Corporation is a project management and software development firm specializing in customer-oriented business enterprise and e-commerce solutions located in Atlanta, Georgia. His current 155_XML_NET_FM.qxd 3/7/02 3:01 PM Page vii viii responsibilities include managing the IT department, heading the tech- nology steering committee, software architecture, e-commerce product management, and refining development processes and methodologies. Though most of his responsibilities lay in the role of manager and archi- tect, he is still an active participant of the research and development team. Joe holds a bachelor’s degree from the University of Wisconsin in Computer Science. His background includes positions as a Senior Developer at Siemens Energy and Automation, and as an independent contractor specializing in e-commerce development. Joe is also co- author of Syngress Publishing’s Hack Proofing Your Web Applications (ISBN: 1-928994-31-8). Joe would like to thank his family for always being there to help him. Henk-Evert Sonder (CCNA) has over 15 years of experience as an Information and Communication Technologies (ICT) professional, building and maintaining ICT infrastructures. In recent years, he has spe- cialized in integrating ICT infrastructures with secure business applica- tions. Henk’s company, IT Selective, works with small businesses to help them develop high-quality, low cost solutions. Henk has contributed to several Syngress books, including the E-Mail Virus Protection Handbook (ISBN: 1-928994-23-7), Designing SQL Server 2000 Databases for .NET Enterprise Servers (ISBN: 1-928994-19-9), VB .NET Developer’s Guide (ISBN: 1-928994-48-2), and BizTalk Server 2000 Developers Guide for .NET (ISBN: 1-928994-40-7). Henk lives in Hingham, Massachusetts with his wife, Jude and daughter, Lilly. Chris Garrett is the Technical Manager for a large European Web agency. He has been working with Internet technologies since 1994 and has provided technical and new media expertise for some of the world’s biggest brands. Chris is a co-author of Syngress Publishing’s ASP .NET Web Developer’s Guide (ISBN: 1-928994-51-2). Chris lives in Yorkshire, England with his wife, Clare and his daughter, Amy. Mesbah Ahmed (PhD and MS, Industrial Engineering) is a Professor of Information Systems at the University of Toledo. In addition to teaching 155_XML_NET_FM.qxd 3/7/02 3:01 PM Page viii ix and research, he provides technical consulting and training for IT and manufacturing industries in Ohio and Michigan. His consulting experi- ence includes systems design and implementation projects with Ford Motors, Dana Corporation, Riverside Hospital, Sears, and others. Currently, he provides IT training in the areas of Java Server, XML, and .NET technologies. He teaches graduate level courses in Database Systems, Manufacturing Systems, and Application Development in Distributed and Web Environment. Recently, he received the University of Toledo Outstanding Teaching award, and the College of Business Graduate Teaching Excellence award. His current research interests are in the areas of data warehousing and data mining. He has published many research articles in academic journals such as Decision Sciences, Information & Management, Naval Research Logistic Quarterly, Journal of Operations Management, IIE Transaction, and International Journal of Production Research. He has also presented numerous papers and seminars in many national and international conferences. Mesbah is also a co-author of Syngress Publishing’s ASP .NET Web Developer’s Guide (ISBN: 1-928994-51-2). Dreamtech Software India, Inc., is a leading provider of corporate software solutions. Based in New Delhi, the company is a successful pio- neer of innovative solutions in e-learning technologies.The Dreamtech Software team, which authored all the books in the Cracking the Code series has over 50 years of combined software-engineering experience in areas such as Java, wireless application, XML, voice-based solutions, .NET, COM/COM+ technologies, distributed computing, DirectX,Windows Media technologies, and security solutions. For more information, log on to www.dreamtechsoftware.com. Frank Boumphrey is a retired professor of surgery who now specializes in Internet applications and medical documentation. As well as numerous medical papers, he has authored several books on XML, the Internet and on other related subjects. Frank is the president of the HTML Writers Guild, a 125,000 member strong, not-for-profit, International organization of Web page Writers, and was a participant in various working groups of the World Wide Web Consortium (W3C). Presently his main objective is to help XML to become the language of choice in Web documents. 155_XML_NET_FM.qxd 3/7/02 3:01 PM Page ix [...]... either PHP, Perl, or ASP 3.x / NET Johothon has been a contributor to a variety of title from Syngress Publishing, including ASP NET Web Developer’s Guide (ISBN: 1-928994-51-2), the VB NET Developer’s Guide (ISBN: 1-928994-48-2), and the Ruby Developer’s Guide (ISBN: 1-928994-64-4) Jonothon lives with his wife, Carla in Lakeland, Florida x 155_XML_NET_TOC.qxd 3/7/02 3:12 PM Page xi Contents Foreword... 469 469 470 482 490 490 493 498 502 508 514 514 514 516 519 519 519 521 522 524 524 524 529 530 530 531 531 533 533 535 537 155_XML_NET_fore.qxd 3/6/02 5:16 PM Page xxi Foreword Welcome to the XML.NET Developer’s Guide! We have taken great care to create a quality reference book for XML programmers who want to enhance their coding skills to include applications for the NET platform.This book assumes that... use both If this sounds confusing to you it may mean that you are still a beginner with NET in general; if this is the case we suggest you pick up a copy of VB.NET Developer’s Guide (ISBN: 1-928994-48-2) and C# Web Developer’s Guide (ISBN: 1928994-50-4) from Syngress Publishing.These books contain greater detail on the NET framework including how it works, and how to work with it using the programming... with in-depth views on specific points in the programming language, and finish off with a set of case studies that enhance the skills and ideas you’ve learned throughout the book All in all, the XML.NET Developer’s Guide has a total of ten chapters Chapter 1 (Introducing the NET Framework) will bring you up to speed with a refresher in how NET works internally, with Chapter 2 (Visual Studio NET IDS) providing... action One other little trick is to view each “panel” as a small form within an mdi, namely the browser window, with their own “hide” and “show” features xvii 275 278 280 280 283 Chapter 7 Creating an XML.NET Guestbook 283 Introduction 284 Functional Design Requirements of the XML Guestbook 285 Constructing the XML 286 Adding Records to the Guestbook 288 Understanding the pnlAdd Panel 292 Adding a Thank-You... cornerstones of the NET Framework .NET aims to bridge the gap between desktop applications and online applications, and facilitate the communication of objects between the two The XML NET Developer’s Guide was created and organized using the following principal: XML, in the real world, lives up to its flexibility.You are just as likely to stumble across a desktop application running XML as you are to... ASP NET and teach you how XML is a vital part of online applications through the use of multiple examples, including an online catalog Chapters 7, 8, 9, and 10 are the hands-on case studies (Creating an XML.NET Guestbook; Creating a Message Board with ADO and XML; Building a Simple Remote Database Viewer; and Building a Wholesale Catalog).These applications, with the exception of Chapter 7, are fairly . www.syngress.com/solutions 155 _XML_ NET_ FM.qxd 3/7/02 3:01 PM Page i 155 _XML_ NET_ FM.qxd 3/7/02 3:01 PM Page ii 1 YEAR UPGRADE BUYER PROTECTION PLAN XML .NET Developer’s Guide. VS .NET XML Designer 87 Components of an XML Document 88 Structure of an XML Document 91 Well-Formed XML Documents 92 Schema and Valid XML Documents 93 XML

Ngày đăng: 21/12/2013, 04:19

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan