Introduction to XML. When talking about XML, here are some terms that would be helpful:
|
|
- Edith Watkins
- 5 years ago
- Views:
Transcription
1 Introduction to XML XML stands for the extensible Markup Language. It is a new markup language, developed by the W3C (World Wide Web Consortium), mainly to overcome limitations in HTML. HTML is an immensely popular markup language. Even though HTML is a popular and successful markup language, it has some major shortcomings. XML was developed to address these shortcomings. It was not introduced for replacement. When talking about XML, here are some terms that would be helpful: XML: extensible Markup Language, a standard created by the W3Group for marking up data. DTD: Document Type Definition, a set of rules defining relationships within a document; DTDs can be "internal" (within a document) or "external" (links to another document). XML Parser: Software that reads XML documents and interprets or "parse" the code according to the XML standard. A parser is needed to perform actions on XML, such as comparing an XML document to a DTD. XML Anatomy If you have ever done HTML coding, creating an XML document will seem very familiar. Like HTML, XML is based on SGML, Standard Generalized Markup Language, and designed for use with the Web. If you haven't coded in HTML before, after creating an XML document, you should find creating HTML documents easy. XML documents, at a minimum, are made of two parts: the prolog and the content. 1. The prolog or head of the document usually contains the administrative metadata about the rest of document. It will have information such as what version of XML is used, the character set standard used, and the DTD, either through a link to an external file or internally. 1 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
2 2. Content is usually divided into two parts that of the structural markup and content contained in the markup, which is usually plain text. Let's take a look at a simple prologue for an XML document: <?xml version="1.0" encoding="iso "?> <?xml declares to a processor that this is where the XML document begins. version="1.0" declares which recommended version of XML the document should be evaluated in. encoding="iso " identifies the standardized character set that is being used to write the markup and content of the XML. The structural markup consists of elements, attributes, and entities; primarily focus on elements and attributes. Elements have a few particular rules: 1. Element names can be any mixture of characters, with a few exceptions. However, element names are case sensitive, unlike HTML. For instance, <elementname> is different from <ELEMENTNAME>, which is different from <ElementName>. Note: The characters that are excluded from element names in XML are &, <, ", and >, which are used by XML to indicate markup. The character: should be avoided as it has been used for special extensions in XML. If you want to use these restricted characters as part of the content within elements but do not want to create new elements, then you would need to use the following entities to have them displayed in XML: XML Entity Names for Restricted Characters Use & For & < < > > " " 2 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
3 2. Elements containing content must have closing and opening tags. <elementname> (opening) </elementname> (closing). Note that the closing tag is the exact same as the opening tag, but with a backslash in front of it. The content within elements can be either elements or character data. If an element has additional elements within it, then it is considered a parent element; those contained within it are called child elements. For example, <elementname>this is a sample of <anotherelement> simple XML</anotherElement>Coding </elementname>. So in this example, <elementname> is the parent element. <anotherelement> is the child of elementname, because it is nested within elementname. Elements can have attributes attached to them in the following format: <elementname attributename="attributevalue" > While attributes can be added to elements in XML, there are a couple of reasons to use attributes sparingly: XML parsers have a harder time checking attributes against DTDs. If the information in the attribute is valuable, why not contain that information in an element? Since some attributes can only have predefined categories, you can't go back and easily add new categories. We recommend using attributes for information that isn't absolutely necessary for interpreting the document or that has a predefined number of options that will not change in the future. When using attributes in XML, the value of the attributes must always be contained in quotes. The quotes can be either single or double quotes. For example, the attribute version= 1.0 in the opening XML declaration could be written version= 1.0 and would be interpreted the same way 3 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
4 by the XML parser. However, if the attribute value contains quotes, it is necessary to use the other style of quotation marks to indicate the value. For example, if there was an attribute name with a value of John Q. Public then it would need to be marked up in XML as name= John Q Public, using the symbols for quotes to enclose the attribute value that is not being used in the value itself. 4 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
5 Creating a Simple XML Document Now that you know the basic rules for creating an XML document, let's try them out. Like most, if not all, standards developed by the W3Group, you can create XML documents using a plain text editor like Notepad (PC), TextEdit (Mac), or Pico (UNIX). You can also use programs like Dreamweaver and Cooktop, but all that is necessary to create the document is a text editor. Let's say we have two types of documents we would like to wrap in XML: s and letters. We want to encode the s and letters because we are creating an online repository of archival messages within an organization or by an individual. By encoding them in XML, we hope to encode their content once and be able to translate it to a variety of outputs, like HTML, PDFs, or types not yet created. To begin, we need to declare an XML version: <?xml version="1.0" encoding="iso "?> Now, after declaring the XML version, we need to determine the root element for the documents. Let's use message as the root element, since both and letters can be classified as messages. <?xml version="1.0" encoding="iso "?> <message> </message> Note: You might have noticed that I created both the opening and closing tags for the message element. When creating XML documents, it is useful to create both the opening and closing elements at the same time. After creating the tags, you would then fill in the content. Since one of the fatal errors for XML is forgetting to close an element, if you make the opening and closing tags each time you create an element, you won't accidentally forget to do so. 5 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
6 Parent and child relationships A way of describing relationships in XML is the terminology of parent and child. In our examples, the parent or "root" element is <message>, which then has two child elements, < >, and <letter>. An easy way of showing how elements are related in XML is to indent the code to show that an element is a child of another. For example, <?xml version="1.0" encoding="iso "?> <message> < > </ > </message> Now that we have the XML declaration, the root element, and the child element ( ), let's determine the information we want to break out in an . Say we want to keep information about the sender, recipients, subject, and the body of the text. Since the information about the sender and recipients are generally in the head of the document, let's consider them children elements of a parent element that we will call <header>. In addition to <header>, the other child elements of < > will be <subject> and <text>. So our XML will look something like this: <?xml version="1.0" encoding="iso "?> <message> < > <header> <sender>me@ischool.utexas.edu</sender> <recipient>you@ischool.utexas.edu</recipient> </header> <subject>re: XML </subject> <text>i'm working on my XML project right now. </text> </ > </message> 6 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
7 Now, let's create an XML document for a letter. Some of the information in a letter we want to know include the sender, the recipient, and the text of the letter. Additionally, we want to know the date that it was sent and what salutation was used to start off the message. Let's see what this would look like in XML: <?xml version="1.0" encoding="iso "?> <message> <letter> <letterhead> <sender>margaret</sender> <recipient>god</recipient> <date>1970</date> </letterhead> <text> <salutation>are you there God?</salutation> It's me Margaret... </text> </letter> </message> Now say we wanted to keep track of whether or not these messages were replies or not. Instead of creating an additional element called <reply>, let's assign an attribute to the elements < > and <letter> indicating whether that document was a reply to a previous message. In XML, it would look something like this: < reply="yes"> or <letter reply="no"> When creating XML documents, it's always useful to spend a little time thinking about what information you want to store, as well as what relationships the elements will have. Now that we've made some XML documents, let's talk about "well formed" XML and valid XML. We have DTD s which tells that the XML document is well formed and valid or not. 7 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
8 DTD (Document Type Definition) Document Type Definition, a mechanism to describe the structure of documents. Sometimes XML is too flexible: Most Programs can only process a subset of all possible XML applications. For exchanging data, the format (i.e., elements, attributes and their semantics) must be fixed. Document Type Definitions (DTD) for establishing the vocabulary for one XML application (in some sense comparable to schemas in databases) A document is valid with respect to a DTD if it conforms to the rules specified in that DTD. Most XML parsers can be configured to validate. The syntax for DTD The syntax for DTDs is different from the syntax for XML documents. Example: 1 is the address book XML code but with one difference: It has a new <!DOCTYPE> statement. The new statement is introduced in the section Document Type Declaration. For now, it suffices to say that it links the document file to the DTD file. Example: 2 is its DTD. Example: 1 An Address Book in XML <?xml version= 1.0?> <!DOCTYPE address-book SYSTEM address-book.dtd > <!-- loosely inspired by vcard > <address-book> <entry> <name>john Doe</name> <address> 8 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
9 <street>34 Fountain Square Plaza</street> <region>oh</region> <postal-code>45202</postal-code> <locality>cincinnati</locality> <country>us</country> </address> <tel preferred= true > </tel> <tel> </tel> < href= /> </entry> <entry> <name><fname>jack</fname><lname>smith</lname></name> <tel> </tel> < href= /> </entry> </address-book> Example: 2 DTD for the Address Book <!-- top-level element, the address book is a list of entries--> <!ELEMENT address-book (entry+)> <!-- an entry is a name followed by addresses, phone numbers, etc.--> 9 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
10 <!ELEMENT entry (name,address*,tel*,fax*, *)> <!-- name is made of string, first name and last name. This is a very flexible model to accommodate exotic name--> <!ELEMENT name (#PCDATA fname lname)*> <!ELEMENT fname (#PCDATA)> <!ELEMENT lname (#PCDATA)> <!-- definition of the address structure if several addresses, the preferred attribute signals the default one --> <!ELEMENT address <!ATTLIST address <!ELEMENT street <!ELEMENT region (street,region?,postal-code,locality,country)> preferred (true false) false > (#PCDATA)> (#PCDATA)> <!ELEMENT postal-code (#PCDATA)> <!ELEMENT locality <!ELEMENT country (#PCDATA)> (#PCDATA)> <!-- phone, fax and , same preferred attribute as address --> <!ELEMENT tel <!ATTLIST tel <!ELEMENT fax <!ATTLIST fax <!ELEMENT <!ATTLIST (#PCDATA)> preferred (true false) false > (#PCDATA)> preferred (true false) false > EMPTY> href CDATA #REQUIRED preferred (true false) false > 10 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
11 DTD Example: Elements Declaration in DTD One element declaration for each element type: <!ELEMENT element_name content_specification> Where content specification can be (#PCDATA) parsed character data (child) one child element (c1,,cn) a sequence of child elements c1 cn (c1 cn) one of the elements c1 cn Special Characters For each component c, possible counts can be specified: c exactly one such element c+ one or more c* zero or more c? zero or one Plus arbitrary combinations using parenthesis: <!ELEMENT f ((a b)*,c+,(d e))*> 11 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
12 Elements with mixed content: <!ELEMENT text (#PCDATA index cite glossary)*> Elements with empty content: <!ELEMENT image EMPTY> Elements with arbitrary content (this is nothing for production-level DTDs): <!ELEMENT thesis ANY> Attribute Declaration Attribute Example 12 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
13 Attributes are declared per element: <!ATTLIST section number CDATA #REQUIRED title CDATA #REQUIRED> declares two required attributes for element section. Possible attribute defaults: #REQUIRED is required in each element instance #IMPLIED is optional #FIXED default always has this default value default has this default value if the attribute is omitted from the element instance CDATA string data (A1 An) enumeration of all possible values of the attribute (each is XML name) ID unique XML name to identify the element IDREF refers to ID attribute of some other element ( intra-document link ) IDREFS list of IDREF, separated by white space Linking DTD and XML Docs DTDs are of two type: a) Internal b) Seperate Internal DTD: <?xml version= 1.0?> <!DOCTYPE article [ ]> <article>... </article> <!ELEMENT article (title,author+,text)>... <!ELEMENT index (#PCDATA)> 13 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
14 Both ways can be mixed, internal DTD overwrites external entity information: <!DOCTYPE article SYSTEM article.dtd [ <!ENTITY % pub_content (title+,author*,text) ]> Flaws of DTDs No support for basic data types like integers, doubles, dates, times, No structured, self-definable data types No type derivation id/idref links are quite loose (target is not specified) 14 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
15 RSS (Really Simple Syndication) About RSS If you frequent Weblogs, you've seen the little XML icons inviting you to "syndicate this site", but what does that really mean? A long time ago, newspaper managers realized that if they could use articles and stories from other newspapers in their paper, they could garner more readers because they could cover a wider area than they could with just their own reporters. This is an example of how syndication can work in print. Online, there are potentially millions of authors writing about millions of topics each day. It can be very difficult to keep track of without some type of automated system. And that's where RSS comes in. Really Simple Syndication (RSS) is an easy way for Web sites to share headlines and stories from other sites. Web surfers can use sophisticated news readers to surf these headlines using RSS aggregators. A Brief History of RSS RSS was first invented by Netscape, when they were trying to get into the portal business. They wanted an XML format (RSS.90) that would be easy for them to get news stories and information from other sites and have them automatically added to their site. They then came out with RSS.91 and dropped it when they decided to get out of the portal business. What is RSS? RSS is a protocol that lets users subscribe to online content using an RSS reader or aggregator, which checks subscribed Web pages and automatically downloads new content. The aggregators display a list of subscriptions, with highlighting or another indicator of RSS feeds that have added content since the user last logged in. Without having to go to all of the individual Web sites, users can quickly and easily access new material from sites that interest them. For many, RSS has become the pipe through which content flows from providers to consumers. What makes RSS important is that users decide exactly what content is allowed through that pipe. Since its introduction in the late 1990s, RSS has become almost ubiquitous. An excellent mechanism for distributing regularly updated content, RSS is a natural complement to blogs, news sites, photo-sharing applications, and podcasts. The popularity of podcasting results on some level 15 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
16 from RSS technology. When new podcasts are available, the aggregator (or, in this case, podcatcher) automatically downloads the new file to your computer or portable music player. Why it is significant? In many ways that lets users subscribe to online content using an RSS reader or aggregator, which checks subscribed Web pages and automatically downloads new content. The aggregators display a list of subscriptions, with highlighting or another indicator of RSS feeds that have added content since the user last logged in. Without having to go to all of the individual Web sites, users can quickly and easily access new material from sites that interest them. For many, RSS has become the pipe through which content flows from providers to consumers. What makes RSS important is that users decide exactly what content is allowed through that pipe. Since its introduction in the late 1990s, RSS has become almost ubiquitous. An excellent mechanism for distributing regularly updated content, RSS is a natural complement to blogs, news sites, photo-sharing applications, and podcasts. The popularity of podcasting results on some level from RSS technology. When new podcasts are available, the aggregator (or, in this case, podcatcher) automatically downloads the new file to your computer or portable music player. RSS Example: RSS files are essentially XML formatted plain text. The RSS file itself is relatively easy to read both by automated processes and by humans alike. An example file could have contents such as the following. This could be placed on any appropriate communication protocol for file retrieval, such as http or ftp, and reading software would use the information to present a neat display to the end users. <?xml version="1.0" encoding="utf-8"?> <rss version="2.0"> <channel> <title>rss Title</title> <description>this is an example of an RSS feed</description> <link> <lastbuilddate>mon, 06 Sep :01: </lastbuilddate> <pubdate>mon, 06 Sep :20: </pubdate> 16 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
17 <ttl>1800</ttl> <item> <title>example entry</title> <description>here is some text.</description> <link> <guid>unique string per item</guid> <pubdate>mon, 06 Sep :20: </pubdate> </item> </channel> </rss> 17 P a g e C E M I S, U n i v e r s i t y o f N i z w a, O m a n.
Introduction to XML Zdeněk Žabokrtský, Rudolf Rosa
NPFL092 Technology for Natural Language Processing Introduction to XML Zdeněk Žabokrtský, Rudolf Rosa November 28, 2018 Charles Univeristy in Prague Faculty of Mathematics and Physics Institute of Formal
More informationXML Introduction 1. XML Stands for EXtensible Mark-up Language (XML). 2. SGML Electronic Publishing challenges -1986 3. HTML Web Presentation challenges -1991 4. XML Data Representation challenges -1996
More informationXML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11
!important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... 7:4 @import Directive... 9:11 A Absolute Units of Length... 9:14 Addressing the First Line... 9:6 Assigning Meaning to XML Tags...
More informationmarkup language carry data define your own tags self-descriptive W3C Recommendation
XML intro 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 tags are not predefined. You must define
More informationThe concept of DTD. DTD(Document Type Definition) Why we need DTD
Contents Topics The concept of DTD Why we need DTD The basic grammar of DTD The practice which apply DTD in XML document How to write DTD for valid XML document The concept of DTD DTD(Document Type Definition)
More informationCPT374 Tutorial-Laboratory Sheet Two
CPT374 Tutorial-Laboratory Sheet Two Objectives: Understanding XML DTDs Tutorial Exercises Exercise 1 - An introduction to XML DTD Go to http://www.zvon.org/xxl/dtdtutorial/general/contents.html and read
More informationCOMP9321 Web Application Engineering. Extensible Markup Language (XML)
COMP9321 Web Application Engineering Extensible Markup Language (XML) Dr. Basem Suleiman Service Oriented Computing Group, CSE, UNSW Australia Semester 1, 2016, Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2442
More informationOverview. Introduction. Introduction XML XML. Lecture 16 Introduction to XML. Boriana Koleva Room: C54
Overview Lecture 16 Introduction to XML Boriana Koleva Room: C54 Email: bnk@cs.nott.ac.uk Introduction The Syntax of XML XML Document Structure Document Type Definitions Introduction Introduction SGML
More informationIntroduction to XML. Chapter 133
Chapter 133 Introduction to XML A. Multiple choice questions: 1. Attributes in XML should be enclosed within. a. single quotes b. double quotes c. both a and b d. none of these c. both a and b 2. Which
More informationEXtensible Markup Language XML
EXtensible Markup Language XML 1 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 tags are not predefined.
More informationExtensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013
Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013 2 Outline Introduction XML Structure Document Type Definition (DTD) XHMTL Formatting XML CSS Formatting XSLT Transformations
More informationChapter 1: Getting Started. You will learn:
Chapter 1: Getting Started SGML and SGML document components. What XML is. XML as compared to SGML and HTML. XML format. XML specifications. XML architecture. Data structure namespaces. Data delivery,
More informationIntroduction to XML. XML: basic elements
Introduction to XML XML: basic elements XML Trying to wrap your brain around XML is sort of like trying to put an octopus in a bottle. Every time you think you have it under control, a new tentacle shows
More informationWeb Programming Paper Solution (Chapter wise)
What is valid XML document? Design an XML document for address book If in XML document All tags are properly closed All tags are properly nested They have a single root element XML document forms XML tree
More informationComp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward
Comp 336/436 - Markup Languages Fall Semester 2017 - Week 4 Dr Nick Hayward XML - recap first version of XML became a W3C Recommendation in 1998 a useful format for data storage and exchange config files,
More informationCHAPTER 2 MARKUP LANGUAGES: XHTML 1.0
WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document
More informationIntroduction to XML. National University of Computer and Emerging Sciences, Lahore. Shafiq Ur Rahman. Center for Research in Urdu Language Processing
Introduction to XML Shafiq Ur Rahman Center for Research in Urdu Language Processing National University of Computer and Emerging Sciences, Lahore XMLXML DTDDTD Related Related Standards Overview What
More information.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar..
.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar.. XML in a Nutshell XML, extended Markup Language is a collection of rules for universal markup of data. Brief History
More informationIntroduction to XML. An Example XML Document. The following is a very simple XML document.
Introduction to XML Extensible Markup Language (XML) was standardized in 1998 after 2 years of work. However, it developed out of SGML (Standard Generalized Markup Language), a product of the 1970s and
More information2009 Martin v. Löwis. Data-centric XML. XML Syntax
Data-centric XML XML Syntax 2 What Is XML? Extensible Markup Language Derived from SGML (Standard Generalized Markup Language) Two goals: large-scale electronic publishing exchange of wide variety of data
More informationStructured documents
Structured documents An overview of XML Structured documents Michael Houghton 15/11/2000 Unstructured documents Broadly speaking, text and multimedia document formats can be structured or unstructured.
More informationOverview. Structured Data. The Structure of Data. Semi-Structured Data Introduction to XML Querying XML Documents. CMPUT 391: XML and Querying XML
Database Management Systems Winter 2004 CMPUT 391: XML and Querying XML Lecture 12 Overview Semi-Structured Data Introduction to XML Querying XML Documents Dr. Osmar R. Zaïane University of Alberta Chapter
More informationAuthor: Irena Holubová Lecturer: Martin Svoboda
NPRG036 XML Technologies Lecture 1 Introduction, XML, DTD 19. 2. 2018 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/172-nprg036/ Lecture Outline Introduction
More informationConstructing a Document Type Definition (DTD) for XML
Constructing a Document Type Definition (DTD) for XML Abstract John W. Shipman 2013-08-24 12:16 Describes the Document Type Definition notation for describing the schema of an SGML or XML document type.
More informationWeb Services Part I. XML Web Services. Instructor: Dr. Wei Ding Fall 2009
Web Services Part I Instructor: Dr. Wei Ding Fall 2009 CS 437/637 Database-Backed Web Sites and Web Services 1 XML Web Services XML Web Services = Web Services A Web service is a different kind of Web
More informationComp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward
Comp 336/436 - Markup Languages Fall Semester 2018 - Week 4 Dr Nick Hayward XML - recap first version of XML became a W3C Recommendation in 1998 a useful format for data storage and exchange config files,
More informationTutorial 2: Validating Documents with DTDs
1. One way to create a valid document is to design a document type definition, or DTD, for the document. 2. As shown in the accompanying figure, the external subset would define some basic rules for all
More informationOutline. XML vs. HTML and Well Formed vs. Valid. XML Overview. CSC309 Tutorial --XML 4. Edward Xia
CSC309 Tutorial XML Edward Xia November 7, 2003 Outline XML Overview XML DOCTYPE Element Declarations Attribute List Declarations Entity Declarations CDATA Stylesheet PI XML Namespaces A Complete Example
More informationXML Structures. Web Programming. Uta Priss ZELL, Ostfalia University. XML Introduction Syntax: well-formed Semantics: validity Issues
XML Structures Web Programming Uta Priss ZELL, Ostfalia University 2013 Web Programming XML1 Slide 1/32 Outline XML Introduction Syntax: well-formed Semantics: validity Issues Web Programming XML1 Slide
More informationData Presentation and Markup Languages
Data Presentation and Markup Languages MIE456 Tutorial Acknowledgements Some contents of this presentation are borrowed from a tutorial given at VLDB 2000, Cairo, Agypte (www.vldb.org) by D. Florescu &.
More informationM359 Block5 - Lecture12 Eng/ Waleed Omar
Documents and markup languages The term XML stands for extensible Markup Language. Used to label the different parts of documents. Labeling helps in: Displaying the documents in a formatted way Querying
More informationInformation Systems. XML Essentials. Nikolaj Popov
Information Systems XML Essentials Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria popov@risc.uni-linz.ac.at Outline Introduction Basic Syntax Well-Formed
More informationUser Interaction: XML and JSON
User Interaction: XML and JSON Assoc. Professor Donald J. Patterson INF 133 Fall 2012 1 HTML and XML 1989: Tim Berners-Lee invents the Web with HTML as its publishing language Based on SGML Separates data
More informationCSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0
CSI 3140 WWW Structures, Techniques and Standards Markup Languages: XHTML 1.0 HTML Hello World! Document Type Declaration Document Instance Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson
More informationCSC Web Technologies, Spring Web Data Exchange Formats
CSC 342 - Web Technologies, Spring 2017 Web Data Exchange Formats Web Data Exchange Data exchange is the process of transforming structured data from one format to another to facilitate data sharing between
More informationEMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents
EMERGING TECHNOLOGIES XML Documents and Schemas for XML documents Outline 1. Introduction 2. Structure of XML data 3. XML Document Schema 3.1. Document Type Definition (DTD) 3.2. XMLSchema 4. Data Model
More informationINTERNET PROGRAMMING XML
INTERNET PROGRAMMING XML Software Engineering Branch / 4 th Class Computer Engineering Department University of Technology OUTLINES XML Basic XML Advanced 2 HTML & CSS & JAVASCRIPT & XML DOCUMENTS HTML
More informationXML. extensible Markup Language. Overview. Overview. Overview XML Components Document Type Definition (DTD) Attributes and Tags An XML schema
XML extensible Markup Language An introduction in XML and parsing XML Overview XML Components Document Type Definition (DTD) Attributes and Tags An XML schema 3011 Compiler Construction 2 Overview Overview
More informationMake a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1
Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web
More informationSemistructured data, XML, DTDs
Semistructured data, XML, DTDs Introduction to Databases Manos Papagelis Thanks to Ryan Johnson, John Mylopoulos, Arnold Rosenbloom and Renee Miller for material in these slides Structured vs. unstructured
More informationPODCASTS, from A to P
PODCASTS, from A to P Basics of Podcasting 1) What are podcasts all About? 2) How do I Get podcasts? 3) How do I create a podcast? Art Gresham UCHUG May 6 2009 1) What are podcasts all About? What Are
More informationUser Interaction: XML and JSON
User Interaction: XML and JSON Asst. Professor Donald J. Patterson INF 133 Fall 2011 1 What might a design notebook be like? Cooler What does a design notebook entry look like? HTML and XML 1989: Tim Berners-Lee
More informationFundamentals of Web Programming a
Fundamentals of Web Programming a Introduction to XML Teodor Rus rus@cs.uiowa.edu The University of Iowa, Department of Computer Science a Copyright 2009 Teodor Rus. These slides have been developed by
More informationIntroduction to XML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University
Introduction to XML Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University http://gear.kku.ac.th/~krunapon/xmlws 1 Topics p What is XML? p Why XML? p Where does XML
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2411 1 Extensible
More informationXML Information Set. Working Draft of May 17, 1999
XML Information Set Working Draft of May 17, 1999 This version: http://www.w3.org/tr/1999/wd-xml-infoset-19990517 Latest version: http://www.w3.org/tr/xml-infoset Editors: John Cowan David Megginson Copyright
More informationIntroduction Syntax and Usage XML Databases Java Tutorial XML. November 5, 2008 XML
Introduction Syntax and Usage Databases Java Tutorial November 5, 2008 Introduction Syntax and Usage Databases Java Tutorial Outline 1 Introduction 2 Syntax and Usage Syntax Well Formed and Valid Displaying
More informationThe main Topics in this lecture are:
Lecture 15: Working with Extensible Markup Language (XML) The main Topics in this lecture are: - Brief introduction to XML - Some advantages of XML - XML Structure: elements, attributes, entities - What
More informationWhat is XML? XML is designed to transport and store data.
What is XML? XML stands for extensible Markup Language. XML is designed to transport and store data. HTML was designed to display data. XML is a markup language much like HTML XML was designed to carry
More informationHypertext Markup Language, or HTML, is a markup
Introduction to HTML Hypertext Markup Language, or HTML, is a markup language that enables you to structure and display content such as text, images, and links in Web pages. HTML is a very fast and efficient
More informationIntroduction to XML 3/14/12. Introduction to XML
Introduction to XML Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University http://gear.kku.ac.th/~krunapon/xmlws 1 Topics p What is XML? p Why XML? p Where does XML
More informationCreate web pages in HTML with a text editor, following the rules of XHTML syntax and using appropriate HTML tags Create a web page that includes
CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB By Hassan S. Shavarani UNIT2: MARKUP AND HTML 1 IN THIS UNIT YOU WILL LEARN THE FOLLOWING Create web pages in HTML with a text editor, following
More information- XML. - DTDs - XML Schema - XSLT. Web Services. - Well-formedness is a REQUIRED check on XML documents
Purpose of this day Introduction to XML for parliamentary documents (and all other kinds of documents, actually) Prof. Fabio Vitali University of Bologna Introduce the principal aspects of electronic management
More informationSDPL : XML Basics 2. SDPL : XML Basics 1. SDPL : XML Basics 4. SDPL : XML Basics 3. SDPL : XML Basics 5
2 Basics of XML and XML documents 2.1 XML and XML documents Survivor's Guide to XML, or XML for Computer Scientists / Dummies 2.1 XML and XML documents 2.2 Basics of XML DTDs 2.3 XML Namespaces XML 1.0
More informationXML (Extensible Markup Language)
Basics of XML: What is XML? XML (Extensible Markup Language) XML stands for Extensible Markup Language XML was designed to carry data, not to display data XML tags are not predefined. You must define your
More informationSemistructured Data and XML
Semistructured Data and XML Computer Science E-66 Harvard University David G. Sullivan, Ph.D. Structured Data The logical models we've covered thus far all use some type of schema to define the structure
More informationHTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية
HTML Mohammed Alhessi M.Sc. Geomatics Engineering Wednesday, February 18, 2015 Eng. Mohammed Alhessi 1 W3Schools Main Reference: http://www.w3schools.com/ 2 What is HTML? HTML is a markup language for
More informationFull file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS
New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13 HTML and CSS Tutorial One: Getting Started with HTML 5 A Guide to this Instructor s Manual: We have designed this Instructor s
More informationXML, DTD: Exercises. A7B36XML, AD7B36XML: XML Technologies. Practical Classes 1 and 2: 3. and
A7B36XML, AD7B36XML: XML Technologies Practical Classes 1 and 2: XML, DTD: Exercises 3. and 10. 3. 2017 Jiří Helmich helmich@ksi.mff.cuni.cz Martin Svoboda svoboda@ksi.mff.cuni.cz http://www.ksi.mff.cuni.cz/~svoboda/courses/2016-2-a7b36xml/
More informationXML. XML Syntax. An example of XML:
XML Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. Defined in the XML 1.0 Specification
More informationXML (Extensible Markup Language
XML (Extensible Markup Language XML is a markup language. XML stands for extensible Markup Language. The XML standard was created by W3C to provide an easy to use and standardized way to store self describing
More informationXML. Objectives. Duration. Audience. Pre-Requisites
XML XML - extensible Markup Language is a family of standardized data formats. XML is used for data transmission and storage. Common applications of XML include business to business transactions, web services
More informationA gentle guide to DocBook How to use the portable document creator
1 of 6 A gentle guide to DocBook How to use the portable document creator Level: Introductory Joe Brockmeier (jbrockmeier@earthlink.net), freelance writer 01 Sep 2000 This article explains what DocBook
More informationTutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION
Tutorial 1 Getting Started with HTML5 HTML, CSS, and Dynamic HTML 5 TH EDITION Objectives Explore the history of the Internet, the Web, and HTML Compare the different versions of HTML Study the syntax
More informationJava EE 7: Back-end Server Application Development 4-2
Java EE 7: Back-end Server Application Development 4-2 XML describes data objects called XML documents that: Are composed of markup language for structuring the document data Support custom tags for data
More informationCSS, Cascading Style Sheets
CSS, Cascading Style Sheets HTML was intended to define the content of a document This is a heading This is a paragraph This is a table element Not how they look (aka style)
More informationCopyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML
Chapter 7 XML 7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML
More informationXML databases. Jan Chomicki. University at Buffalo. Jan Chomicki (University at Buffalo) XML databases 1 / 9
XML databases Jan Chomicki University at Buffalo Jan Chomicki (University at Buffalo) XML databases 1 / 9 Outline 1 XML data model 2 XPath 3 XQuery Jan Chomicki (University at Buffalo) XML databases 2
More informationIntroduction to Semistructured Data and XML. Overview. How the Web is Today. Based on slides by Dan Suciu University of Washington
Introduction to Semistructured Data and XML Based on slides by Dan Suciu University of Washington CS330 Lecture April 8, 2003 1 Overview From HTML to XML DTDs Querying XML: XPath Transforming XML: XSLT
More information5/19/2015. Objectives. JavaScript, Sixth Edition. Introduction to the World Wide Web (cont d.) Introduction to the World Wide Web
Objectives JavaScript, Sixth Edition Chapter 1 Introduction to JavaScript When you complete this chapter, you will be able to: Explain the history of the World Wide Web Describe the difference between
More informationDesign issues in XML formats
Design issues in XML formats David Mertz, Ph.D. (mertz@gnosis.cx) Gesticulator, Gnosis Software, Inc. 1 November 2001 In this tip, developerworks columnist David Mertz advises when to use tag attributes
More informationPART COPYRIGHTED MATERIAL. Getting Started LEARN TO: Understand HTML, its uses, and related tools. Create HTML documents. Link HTML documents
2523ch01.qxd 3/22/99 3:19 PM Page 1 PART I Getting Started LEARN TO: Understand HTML, its uses, and related tools Create HTML documents Link HTML documents Develop and apply Style Sheets Publish your HTML
More informationUser Interaction: XML and JSON
User Interaction: and JSON Asst. Professor Donald J. Patterson INF 133 Fall 2010 1 What might a design notebook be like? Cooler What does a design notebook entry look like? HTML and 1989: Tim Berners-Lee
More informationThe Extensible Markup Language (XML) and Java technology are natural partners in helping developers exchange data and programs across the Internet.
1 2 3 The Extensible Markup Language (XML) and Java technology are natural partners in helping developers exchange data and programs across the Internet. That's because XML has emerged as the standard
More informationXML 2 APPLICATION. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.
XML 2 APPLIATION hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Objectives You will learn: How to create an XML document. The role of the document map, prolog, and XML declarations. Standalone declarations.
More informationPart A: Getting started 1. Open the <oxygen/> editor (with a blue icon, not the author mode with a red icon).
DIGITAL PUBLISHING AND PRESERVATION USING TEI http://www.lib.umich.edu/digital-publishing-production/digital-publishing-and-preservation-using-tei-november-13-2010 Introductory TEI encoding 1 This exercise
More informationPodcasting in The Classroom
Podcasting in The Classroom Sutherland High School Tina Jarvis August 27, 2008 Our Agenda Today 8:00-8:15 Introductions 8:15 9:00 Presentation 9:00 10:00 itunes Podcasting search 10:00 10:10 Break 10:10
More informationOutline. XML DOCTYPE External - SYSTEM. XML DOCTYPE Internal DTD &6&7XWRULDO ;0/ (GZDUG;LD
&6&7XWRULDO ;0/ (GZDUG;LD Outline XML DOCTYPE Element Declarations Attribute List Declarations Entity Declarations CDATA Stylesheet PI A Complete Example -DQXDU\ 1 CSC309 Tutorial --XML 2 XML DOCTYPE Internal
More informationUNIT I. A protocol is a precise set of rules defining how components communicate, the format of addresses, how data is split into packets
UNIT I Web Essentials: Clients, Servers, and Communication. The Internet- Basic Internet Protocols -The World Wide Web-HTTP request message-response message- Web Clients Web Servers-Case Study. Markup
More informationPart 2: XML and Data Management Chapter 6: Overview of XML
Part 2: XML and Data Management Chapter 6: Overview of XML Prof. Dr. Stefan Böttcher 6. Overview of the XML standards: XML, DTD, XML Schema 7. Navigation in XML documents: XML axes, DOM, SAX, XPath, Tree
More informationUsing UML To Define XML Document Types
Using UML To Define XML Document Types W. Eliot Kimber ISOGEN International, A DataChannel Company Created On: 10 Dec 1999 Last Revised: 14 Jan 2000 Defines a convention for the use of UML to define XML
More information02 Structured Web. Semantic Web. Documents in XML
Semantic Web 02 Structured Web Documents in XML Imran Ihsan Assistant Professor, Department of Computer Science Air University, Islamabad, Pakistan www.imranihsan.com Role of XML in the Semantic Web Most
More informationAnnouncements. Paper due this Wednesday
Announcements Paper due this Wednesday 1 Client and Server Client and server are two terms frequently used Client/Server Model Client/Server model when talking about software Client/Server model when talking
More informationSession [2] Information Modeling with XSD and DTD
Session [2] Information Modeling with XSD and DTD September 12, 2000 Horst Rechner Q&A from Session [1] HTML without XML See Code HDBMS vs. RDBMS What does XDR mean? XML-Data Reduced Utilized in Biztalk
More informationChapter 13 XML: Extensible Markup Language
Chapter 13 XML: Extensible Markup Language - Internet applications provide Web interfaces to databases (data sources) - Three-tier architecture Client V Application Programs Webserver V Database Server
More informationPODCASTS, from A to P
PODCASTS, from A to P Basics of Podcasting 1) What are podcasts all About? 2) Where do I get podcasts? 3) How do I start receiving a podcast? Art Gresham UCHUG Editor July 18 2009 Seniors Computer Group
More informationHTML. Hypertext Markup Language. Code used to create web pages
Chapter 4 Web 135 HTML Hypertext Markup Language Code used to create web pages HTML Tags Two angle brackets For example: calhoun High Tells web browser ho to display page contents Enter with
More informationextensible Markup Language
extensible Markup Language XML is rapidly becoming a widespread method of creating, controlling and managing data on the Web. XML Orientation XML is a method for putting structured data in a text file.
More informationDOWNLOAD PDF CAN I ADD A PAGE TO MY WORD UMENT
Chapter 1 : How to Add a Word Document to a Word Document blog.quintoapp.com Adding a Word document file into another helps save time. There are a number of ways you can do this. You can copy the document
More information7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML
7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML is a markup language,
More informationInformatics 1: Data & Analysis
Informatics 1: Data & Analysis Lecture 9: Trees and XML Ian Stark School of Informatics The University of Edinburgh Tuesday 11 February 2014 Semester 2 Week 5 http://www.inf.ed.ac.uk/teaching/courses/inf1/da
More informationIt is possible to create webpages without knowing anything about the HTML source behind the page.
What is HTML? HTML is the standard markup language for creating Web pages. HTML is a fairly simple language made up of elements, which can be applied to pieces of text to give them different meaning in
More informationSolutions. a. Yes b. No c. Cannot be determined without the DTD. d. Schema. 9. Explain the term extensible. 10. What is an attribute?
Chapter 7: Information Representation Method XML Solutions Summative Assessment Multiple-Choice Questions (MCQs) 1. XML was developed to overcome the limitations of the markup language. a. EDI b. SGML
More informationCSI 3140 WWW Structures, Techniques and Standards. Representing Web Data: XML
CSI 3140 WWW Structures, Techniques and Standards Representing Web Data: XML XML Example XML document: An XML document is one that follows certain syntax rules (most of which we followed for XHTML) Guy-Vincent
More informationIntroduction to XML. University of California, Santa Cruz Extension Computer and Information Technology
Introduction to XML University of California, Santa Cruz Extension Computer and Information Technology Presented by: Bennett Smith bennettsmith@idevelopsoftware.com Introduction Answer the question What
More informationXML, DTD, and XPath. Announcements. From HTML to XML (extensible Markup Language) CPS 116 Introduction to Database Systems. Midterm has been graded
XML, DTD, and XPath CPS 116 Introduction to Database Systems Announcements 2 Midterm has been graded Graded exams available in my office Grades posted on Blackboard Sample solution and score distribution
More informationBuilding an ASP.NET Website
In this book we are going to build a content-based ASP.NET website. This website will consist of a number of modules, which will all fit together to produce the finished product. We will build each module
More informationA tutorial report for SENG Agent Based Software Engineering. Course Instructor: Dr. Behrouz H. Far. XML Tutorial.
A tutorial report for SENG 609.22 Agent Based Software Engineering Course Instructor: Dr. Behrouz H. Far XML Tutorial Yanan Zhang Department of Electrical and Computer Engineering University of Calgary
More informationS emistructured Data & XML
S emistructured Data & XML Database Systems, A Practical Approach to Design, Implementation and Management (Connolly & Begg, Ch. 29) XML Bible (Harold, Ch. 1) S lide:1 14/04/04 1 Overview Semistructured
More informationXMLInput Application Guide
XMLInput Application Guide Version 1.6 August 23, 2002 (573) 308-3525 Mid-Continent Mapping Center 1400 Independence Drive Rolla, MO 65401 Richard E. Brown (reb@usgs.gov) Table of Contents OVERVIEW...
More information