 2001 Prentice Hall, Inc. All rights reserved. Chapter 5 – Creating Markup with XML Outline 5.1Introduction 5.2Introduction to XML Markup 5.3Parsers and.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

 2001 Prentice Hall, Inc. All rights reserved. 1.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Presentation 6: Introduction to XML and related technologies – for use with SOAP / WSDL = Web services.
XML Document Type Definitions ( DTD ). 1.Introduction to DTD An XML document may have an optional DTD, which defines the document’s grammar. Since the.
Introduction to XML John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
Tutorial 9 Working with XHTML
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 – Schemas Outline 7.1Introduction 7.2Schemas vs. DTDs 7.3Microsoft XML Schema: Describing Elements.
eXtensible Markup Language (XML)
 2002 Prentice Hall, Inc. All rights reserved. ISQA 407 XML/WML Winter 2002 Dr. Sergio Davalos.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
XML An introduction. xml XML like HTML is created from the Standard Generalized Markup Language, SGML.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 11 – XML Path Language (XPath) Outline 11.1Introduction 11.2Nodes 11.3Location Paths Axes.
Software Methods Content 1. Markup Languages : HTML, XML 2. Object Middleware, Java Beans.
Presentation 6: Introduction to XML and related technologies.
Introduction to XML This material is based heavily on the tutorial by the same name at
8/6/2015Comp Sci 3461 XML_1 Ch. 7 Fall /6/2015Comp Sci 3462 Bibliography  W3C Recommendations  XML online tutorials.
Topics The "bigger picture" –The "XML sales pitch" –XML/XHTML vs. SGML/HTML –XML in electronic publishing –XML and the future, web 2.0 XML basics: –Building.
JavaScript: Control Structures September 27, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel,
 2004 Prentice Hall, Inc. All rights reserved. Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Chapter 27 – XML (Extensible Markup Language) Outline 27.1Introduction 27.2Structuring Data 27.3Document.
XP The University of Akron Summit College Business Technology Department Computer Information Systems 2440: 140 Internet Tools Instructor: Enoch E. Damson.
1 Outline 3.1 Introduction 3.2 Editing HTML 3.3 First HTML Example 3.4 W3C HTML Validation Service 3.5 Headers 3.6 Linking 3.7 Images 3.8 Special Characters.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
XML Introduction. Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of a document. Because.
 2002 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 – Schemas Outline 7.1Introduction 7.2Schemas vs. DTDs 7.3Microsoft XML Schema: Describing Elements.
XML - DTD. The building blocks of XML documents Elements, Tags, Attributes, Entities, PCDATA, and CDATA.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XML Extensible Markup Language. What is XML? An infrastructure for describing text and data Developed by W3C(the World Wide Web Consortium)
CSCI/CMPE 4341 Topic: Programming in Python Chapter 9: Python XML Processing Xiang Lian The University of Texas – Pan American Edinburg, TX 78539
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Session IV Chapter 9 – XML Schemas
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
 2004 Prentice Hall, Inc. All rights reserved. 1 Chapter 34 - Case Study: Active Server Pages and XML Outline 34.1 Introduction 34.2 Setup and Message.
 2002 Prentice Hall, Inc. All rights reserved. Chapter 6 – Document Type Definition (DTD) Outline 6.1Introduction 6.2Parsers, Well-formed and Valid XML.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 15 – Case Study: Message Forum with Active Server Pages Outline 15.1Introduction 15.2Setup and.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XML.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
Week 1 Algorithmization and Programming Languages.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 20 - Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring Data 20.3 XML.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
 2002 Prentice Hall, Inc. All rights reserved. 1 Chapter 12 – XSL: Extensible Stylesheet Language Transformations (XSLT) Outline 12.1Introduction 12.2Setup.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 24 – Case Study: ASP.NET and XML Outline 24.1 Introduction 24.2 Setup and Message Forum Documents.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
Chapter 2: Well-Formed XML. Chapter 2 Objectives How to create SML elements using start- tags and end-tags How to further describe elements with attributes.
Unit 10 Schema Data Processing. Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Reserved characters.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
Well Formed XML The basics. A Simple XML Document Smith Alice.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 13 - Wireless Markup Language (WML): Part I Outline 13.1 Introduction 13.2 Editing WML 13.3 First.
XML DTD. XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Unit 8 XML Documents. Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Characters and white.
XML Technology. Emerging Importance of XML –HTML-tagging is display oriented. –XML-based content tagging has important uses: data mining role-oriented.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Presentation 6: Introduction to XML and related technologies – for use with SOAP / WSDL = Web services.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 22 - i-mode Outline 22.1 Introduction 22.2 Japan’s Telecommunications Industry and Infrastructure.
Chapter 7 Representing Web Data: XML
14 XML.
Allyson Falkner Spokane County ISD
Presentation transcript:

 2001 Prentice Hall, Inc. All rights reserved. Chapter 5 – Creating Markup with XML Outline 5.1Introduction 5.2Introduction to XML Markup 5.3Parsers and Well-formed XML Documents 5.4Parsing an XML Document with msxml 5.5Characters 5.5.1Character Set 5.5.2Characters vs. Markup 5.5.3While Space, Entity References and Built-in Entities 5.5.4Using Unicode in an XML Document 5.6Markup 5.7 CDATA Sections 5.8XML Namespaces 5.9Case Study: A Day Planner Application 5.10Internet and World Wide Web Resources

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.1Simple XML document containing a message Welcome to XML! 8

 2001 Prentice Hall, Inc. All rights reserved. Fig. 5.2XML document shown in IE5.

 2001 Prentice Hall, Inc. All rights reserved. Fig. 5.3Error message for a missing end tag.

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.4XML document that contains Arabic words دايتَل 13 أند &assoc; أهلاً 23 بكم 24 فيِ 25 عالم &text; 29 30

 2001 Prentice Hall, Inc. All rights reserved. Output for Fig. 5.4

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.5XML document that marks up information about a fictitious book Deitel&s XML Primer Paul 13 Deitel Welcome 18 Easy XML 19 XML Elements? 20 Entities

 2001 Prentice Hall, Inc. All rights reserved. Output for Fig. 5.5

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.6XML document that marks up a letter Jane Doe 10 Box Any Ave. 12 Othertown 13 Otherstate Jane Doe Main St Anytown 24 Anystate

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.6XML document that marks up a letter. (Part 2) 30 Dear Sir: It is our privilege to inform you about our new 33 database managed with XML. This new system 34 allows you to reduce the load on your inventory list 35 server by having the client machine perform the work of 36 sorting and filtering the data The data in an XML element is normalized, so 39 plain-text diagrams such as 40 /---\ 41 | | 42 \---/ 43 will become gibberish Sincerely 46 Ms. Doe 47 48

 2001 Prentice Hall, Inc. All rights reserved. Output for Fig. 5.6

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.7Using a CDATA section // C++ comment 10 if ( this->getX() < 5 && value[ 0 ] != 3 ) 11 cerr << this->displayError(); <![CDATA[ // C++ comment 18 if ( this->getX() < 5 && value[ 0 ] != 3 ) 19 cerr displayError(); 20 ]]> C++ How to Program by Deitel & Deitel 24

 2001 Prentice Hall, Inc. All rights reserved. Output for Fig. 5.7

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.8Listing for namespace.xml <directory xmlns:text = "urn:deitel:textInfo" 7 xmlns:image = "urn:deitel:imageInfo"> A book list A funny picture

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.9Using default namespaces <directory xmlns = "urn:deitel:textInfo" 7 xmlns:image = "urn:deitel:imageInfo"> A book list A funny picture

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.10Day planner XML document planner.xml Doctor&apos;s appointment 12 Physics class at BH291C Independence Day 17 18

 2001 Prentice Hall, Inc. All rights reserved. Outline Fig. 5.10Day planner XML document planner.xml. (Part 2) General Meeting in room 32-A Party at Joe&apos;s Financial Meeting in room 14-C

 2001 Prentice Hall, Inc. All rights reserved. Fig. 5.11Application that uses the day planner.