Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 868 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
868
Dung lượng
42,72 MB
Nội dung
[...]... 88 92 93 93 103 109 114 114 CHAPTER 5: XML SCHEMAS 117 Benefits of XML Schemas 118 XML Schemas Use XML Syntax XML Schema Namespace Support XML Schema Data Types XML Schema Content Models XML Schema Specifications XML Schemas in Practice Defining XML Schemas Declarations Declarations Mixed Content Declarations Declarations An XML Schema for Contacts Data Types ... I: INTRODUCING XML CHAPTER 1: WHAT IS XML? Steps Leading up to XML: Data Representation and Markups 3 4 Binary Files Text Files A Brief History of Markup 4 5 6 The Birth of XML More Advantages of XML 6 10 XML Rules Hierarchical Data Representation Interoperability XML in Practice Data Versus Document XML Scenarios XML Technologies Summary 10 11 12 13 13 14 16 23 CHAPTER 2: WELL-FORMED XML 25 What Does... Using MySQL with XML Installing MySQL Adding Information in MySQL Querying MySQL Updating XML in MySQL Usability of XML in MySQL Client-Side XML Support Using SQL Server with XML Installing SQL Server Presenting Relational Data as XML Understanding the xml Data Type Creating Indexes with the xml Data Type W3C XML Schema in SQL Server Dealing with Namespaced Documents Using eXist with XML Downloading... Functions JSON Features XQuery, Linked Data, and the Semantic Web Summary CHAPTER 10: XML AND DATABASES Understanding Why Databases Need to Handle XML Analyzing which XML Features are Needed in a Database Retrieving Documents Retrieving Data from Documents Updating XML Documents Displaying Relational Data as XML Presenting XML as Relational Data 309 309 309 310 310 313 313 317 318 318 319 325 332 332 333... 406 417 427 428 429 Using XmlReader Using XmlReaderSettings Controlling External Resources Summary CHAPTER 12: LINQ TO XML What Is LINQ? Why You Need LINQ to XML Using LINQ to XML 434 441 447 448 451 451 454 454 xxi ftoc.indd xxi 05/06/12 6:18 PM CONTENTS Creating Documents Creating Documents with Namespaces Creating Documents with Prefixed Namespaces Extracting Data from an XML Document Modifying Documents... cover some uses of XML, how to publish data in an XML format, and how to create and consume XML- based web services We explain how AJAX came about and how it works, alongside some alternatives to XML and when you should consider them ➤ We follow up with a couple of chapters on how to use XML for web page and image display ➤ Finally, there’s a case study that ties a lot of the various XML- based technologies... terminology If you are already familiar with XML, you can probably just skim these chapters Chapter 1: What Is XML? — Chapter 1 covers the history of XML and why it is needed, as well as the basic rules for creating XML documents Chapter 2: Well-Formed XML — This chapter goes into more detail about what is and isn’t allowed if a document is to be called XML It also covers the modern naming system that... CHAPTER 2: WELL-FORMED XML 25 What Does Well-Formed Mean? Creating XML in a Text Editor 26 26 Forbidden Characters XML Prolog Creating Elements Attributes Element and Attribute Content Processing Instructions CDATA Sections 26 27 30 33 34 38 39 Advanced XML Parsing 40 XML Equivalence Whitespace Handling Error Handling 41 42 44 The XML Infoset The Document Information Item ftoc.indd xv 47 48 05/06/12... exactly what XML is and why people felt it was needed ➤ We then take you through how to create XML and what rules need to be followed ➤ Once you’ve mastered that, you move on to what a valid XML document is and how you can be sure that yours is one of them ➤ Then you’ll look at how you can manipulate XML documents to extract data and to transform them into other formats ➤ Next you deal with storing XML in... your XML is valid, and also includes examples of mixing more than one validation technique xxix flast.indd xxix 05/06/12 6:18 PM INTRODUCTION Part III: Processing This section covers retrieving data from an XML document and also transforming one format of XML to another Included is a thorough grounding in XPath, one of the cornerstones of many XML technologies Chapter 7: Extracting Data from XML — . 114 CHAPTER 5: XML SCHEMAS 117 Benefi ts of XML Schemas 118 XML Schemas Use XML Syntax 118 XML Schema Namespace Support 118 XML Schema Data Types 119 XML Schema Content Models 119 XML Schema Specifi. XML 10 XML Rules 10 Hierarchical Data Representation 11 Interoperability 12 XML in Practice 13 Data Versus Document 13 XML Scenarios 14 XML Technologies 16 Summary 23 CHAPTER 2: WELLFORMED XML. INTRODUCING XML CHAPTER 1: WHAT IS XML? 3 Steps Leading up to XML: Data Representation and Markups 4 Binary Files 4 Text Files 5 A Brief History of Markup 6 The Birth of XML 6 More Advantages of XML