XML & Related Languages
|
|
- Madeleine Clarke
- 5 years ago
- Views:
Transcription
1 Unit 1 1
2 Introduction: XML XML = extensible Markup Language the universal format for structured documents and data on the Web. simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet challenges of largescale electronic publishing Increasingly important role for exchanging a wide variety of data on the Web (and not on the Web) 2
3 XML: an example <?xml version="1.0"?> <Course CatalogId="RSEG-0151-G1"> <Title Nickname='XML Course'>XML and Related Languages </Title> <Credits>3</Credits> <Offering> <Term>Fall 2003</Term> <Instructor>John Arnold</Instructor> <Location OnCampus="Y">Waltham</Location> <Schedule> <Weekly> <DayOfWeek>Tuesday</DayOfWeek> <StartTime>1800</StartTime> <EndTime>2100</EndTime> </Weekly> </Schedule> </Offering> </Course> 3
4 XML: Key Goals Simplicity Strictly and simply structured Easy to get started reading XML All features recognized by all XML-supporting tools & applications Compatibility Platform-independent No reliance on hardware endian-ness, etc. Support a wide variety of applications Easy to adapt to a number of problem domains, programming environments, etc. Legibility Human-readable XML-literate person can look at an XML document and figure it out 4
5 XML in 10 Points ( XML is for structuring data Structured data of just about anything you can think of Address books, database records, vector graphics, etc. A set of rules (or conventions or guidelines) for designing text formats for structured data Extensible = you (or a group) decide on the meaning Not a programming language Makes it easy for computer programs to generate data, read data, and ensure the data is not ambiguous Unicode-compliant Others have taken care of multi-language issues (e.g., 2-byte characters) 5
6 XML in 10 points XML looks a bit like HTML XML and HTML each have elements and attributes but HTML is not XML HTML specifies meaning of each element and each attribute and how it will look in a browser Ex: <p> is a paragraph XML uses elements to delimit pieces of data. The application decides what it means Ex: <p> is a??? In an XML document, a single element name can mean different things in different contexts! 6
7 XML in 10 points XML is text but not meant to be read It allows the programmer to look at the data Especially helpful during design and debugging Don t need a working program to look at the data It works around hardware end-ian differences XML parsing rules are strict No need for each application to determine whether a data file is broken (legally defined) No second-guessing a broken file s meaning 7
8 XML in 10 points XML is verbose by design Yes, typical XML data files are bigger than an equivalent binary representation Advantages (see previous slide) are believed to outweigh disadvantages Disk space is getting cheaper Compression can be good and fast Protocols (e.g., HTTP/1.1) can compress on the fly and save bandwidth as needed 8
9 XML in 10 points XML is a family of technologies XML 1.0 is a specification that defines elements, attributes, etc. Technologies based on XML 1.0 define a growing set of modules, services, etc. for common tasks XLink add hyperlinks to XML file XPointer access to parts of an XML file XSLT a transformation language for rearranging, adding, deleting elements and attributes DOM a standard set of function calls for accessing XML from a programming language XML Schema help developers precisely define the structures of their own XML documents 9
10 XML in 10 points XML is new but not that new Development started in 1996 A W3C Recommendation since February 1998 SGML has been an ISO standard since 1986 HTML started in 1990 Best parts of SGML + lessons learned from the HTML experience (the good and the bad) = XML Powerful, more regular, and simple to use and understand 10
11 XML in 10 points XML leads HTML to XHTML XHTML is an important XML application (a document format with a specific purpose): Most of the same elements as HTML Slight syntax changes to conform to XML rules Results in Syntax that is correct (well-formed) Adds meaning (semantics) to the syntax» Ex: <p> means paragraph 11
12 XML in 10 points XML is modular You can define a new document format by combining and reusing existing formats Namespace mechanism» Avoids confusion that can arise from use of same basic name XML Schema» Defines document structure» Provides a mechanism for combining existing schemas into a new schema 12
13 XML in 10 points XML is the basis for RDF and the semantic web RDF (Resource Description Framework) XML format that supports resource description and metadata applications» Ex: music playlists, image collections, bibliographies RDF integrates applications and agents into one semantic web» Content and a description of the content (metacontent) 13
14 XML in 10 points XML is license-free, platform-independent, and very well supported Define your own document structures Choose from a growing number of industryconsortia, agreed upon formats Wide variety of tools Works on Linux, Unix, Windows, Mac, Lets you focus on applications rather than infrastructure! 14
15 Building Applications with XML XML = low-level syntax for representing structured data Supports a wide variety of applications Simple data representation and organization model reduces data incompatibility, need for re-keying, etc. Database queries output in XML Transformed from XML (using XSLT) into HTML Separate data from presentation 15
16 Other uses of XML Method invocation on remote servers through a firewall SOAP: Simple Object Access Protocol Storing configuration and deployment data for applications OS-independent formats for.ini,.config files Templates describing various fields and attributes of business forms Again separating the meaning of the data on the form (e.g., name) from the layout and look of the form 16
17 XML Tools Text Editors & Browsers XML Parsers XSLT Processors XML Validation, etc. References:» (CN: XM000101) 17
18 Text Editors & Browsers Since XML is text only, you can get started with a simple text editor & browser emacs, vi, Notepad, etc. Just edit a file and save it with the.xml extension Netscape, Internet Explorer, and Opera Can process an XML file Useful for viewing or checking basic syntax 18
19 Text Editors & Browsers (part 2) Many more advanced editors are available XML Spy: Popular, very complete XML editor, validator, etc. with add-ons for XSLT, etc. (Windows) Not free, but 30-day free download/trial» SoftQuad XMetaL (Windows) ChannelPoint Merlot (Any OS with Java) Tibco Turbo Microsoft XML Notepad 19
20 XML Parsers APIs used to read and navigate XML files Most browsers have a simple one built in Two popular, free parsers Java Web Services Developer Pack 1.2» Includes JAXP (Java APIs for XML Processing)» Microsoft XML Core Services (MSXML v4.0 SP2)» (look for downloads) 20
21 XSLT Processors Transform XML to Another XML format A non-xml format Typical use: transform XML data to presentation (UI) JAXP and MSXML have XSLT support SAXON: XSLT and XML SAX parser (v 6.5.2) 21
22 XML Validation, etc. XSV Command line XML validator (for Win32) ftp://ftp.cogsci.ed.ac.uk/pub/xsv Web-based XML validator 22
23 XML Essentials (part 1) XML = a way of presenting structured information in a text-based document A meta-markup language It can be used to define other mark-up grammars What s legal syntax for a particular XML application 23
24 XML: 2 Key Concepts Well-formed Basic, overall syntax rules for all XML documents Valid Additional rules for an XML Application: A particular family of XML documents Document structure conforms to a DTD or an XML Schema (more later) 24
25 Basic Syntax: XML Documents Structuring or marking up data Putting data in XML format in an XML document An XML document is all text Some text is mark up data: providing the structure Some text is parsed character data (PCDATA): providing the data values in the context of the structure 25
26 Basic Syntax: XML Documents (part 2) An XML document contains exactly one root element (called the root element or document element) The root element is the tag that appears at the beginning and end of the document all other elements are nested inside the root element Nesting can be as deep as necessary 26
27 Basic Syntax: XML Documents (part 3) An XML Document may contain a prolog Prolog = text before the root element Not part of the structured data Typically, an XML declaration and/or processing instructions» references to grammar, etc. more later 27
28 Basic Syntax: XML Documents (part 4) Basic XML document <?xml version="1.0" encoding="utf-8" standalone="yes"?> <root> <tag>parsed Character Data</tag> </root> 28
29 Basic Syntax: Elements Elements Primary organizational mechanism in XML Containers that hold and organize information XML has no pre-defined elements Each element must have a start-tag and a matching end-tag (with leading slash) Start tag: End tag: <tag> </tag> 29
30 Basic Syntax: Elements (part 2) Inside the element s start- and end-tag Any combination of character data and other elements Mixed-content element: an element that contains both other elements and text Empty-element: contains neither other elements nor text Ex: <empty></empty> or <empty/> 30
31 Basic Syntax: Elements (part 3) Find the mixed-content element(s) and empty element(s) <element1>character data</element1> <element2> <tag1>some more</tag1> <tag2>character data</tag2> </element2> <element3></element3> <element3> Even <element4>more</element4> character data </element3> <element4/> Would this be well-formed XML? 31
32 Basic Syntax: Elements (part 4) Relationships between elements Root (or document) element Ancestor (parent, parent of parent, etc.) Parent Sibling Child Descendent (children, children of children, etc.) 32
33 Basic Syntax: Elements (part 5) Properties of element names Case sensitive: Element element Cannot contain spaces! Cannot start with letters xml in any combination of upper/lower case Reserved for use by the XML spec 1 st character must be a letter or underscore ( _ ) letter is broad definition. Not just English letter Can contain numerals (0-9), hyphen ( - ), and period (. ) in any position except the 1 st character Colon ( : ) allowed only for declaring namespaces 33
34 Basic Syntax: Elements (part 6) Examples: Good or bad? <RootElement> <My Element>data</My Element> <TagName>data</TagName> <3rdRock>data</3rdRock> <xmlking>i have a dream</xmlking> </RootElement> 34
35 Basic Syntax: Elements (part 7) Examples: Good or bad? <RootElement> <My Element>data</My Element> <TagName>data</TagName> <3rdRock>data</3rdRock> <xmlking>i have a dream</xmlking> </RootElement> ok. no space allowed ok. no leading digit use of XML reserved 35
36 Basic Syntax: Attributes Attribute A name/value pair listed in an element s starttag. Name associated to value with equals sign (=) An element can have 0 or more attributes Each attribute must be unique for that element That is, the same attribute can t appear twice in the element s start-tag Attribute value must be enclosed in single or double quotes Remember, attribute values are text, too! Attributes cannot appear in end-tag 36
37 Basic Syntax: Attributes (part 2) Examples <examples> <stock symbol="emc" price="10.00">emc Corporation</stock> <auto year="2002" make="toyota" model='corolla'> <color>maroon</color> <VIN>XXYYZZ </VIN> </auto> <department cost_center="123"> <employees> <employee badge="1234">john Doe</employee> <employee badge="5678">jane Smith</employee> </employees> </department> </examples> 37
38 Basic Syntax: Attributes (part 3) Properties of attribute names Like elements Case-sensitive Cannot contain spaces Cannot start with xml Must start with letter or underscore 38
39 Basic Syntax: Attributes (part 4) Why attributes? Often used to contain metadata about the element or hold key values, but no firm rules One of the design decisions you will make is whether, when, and how to use attributes. We ll see some reasons for them when we talk about DTDs. But, for now, we ll just think about it. 39
40 Well-Formed XML To be considered an XML document, the document must be well-formed: Syntactically correct If not well-formed, parsers will fail to read the document No almost correct It s well-formed or it s not an XML document A data object is an XML document if it is well-formed, as defined in this specification. Well-formed in XML has rules that are more strict than HTML 40
41 Well-Formed XML (part 2) Every element must have a start-tag and an end-tag <elementx>any mix of markup and/or character data</elementx> 41
42 Well-Formed XML (part 3) XML elements cannot overlap End-tag of an inner element must be present before the end-tag of the parent element <parent>this is an outer element <child>with a properly enclosed inner element</child>. </parent> 42
43 Well-Formed XML (part 4) Every XML document must have exactly one root element (also called the document element) No special name Can be any legal element name <anyelementnamewewant> <data>some of our data</data> <data>more data.</data> <otherdata>other data with a different element name</otherdata> </anyelementnamewewant> 43
44 Well-Formed XML (part 5) Attributes Any specific attribute can appear only once for any given element Can t model 2 values of an attribute with the same attribute appearing twice Attribute name is separated from the value with an equals sign (=) Whitespace around the = is optional Attribute values must be enclosed in single or double quotes and they must match No difference in meaning the parsers won t even tell you which was used 44
45 Well-Formed XML (part 6) Attributes (continued) So how do suppose we model an attribute value that contains quotation marks? One way is to use the alternate quotation mark for the value delimiter Ex: character= Peter Spider-Man Parker or character= Peter Spider-Man Parker Another way is to use an entity reference 45
46 Well-Formed XML (part 7) Legal (and illegal) characters in character data We ve seen that < and > have a special function in XML markup. Other characters that have special function: & You can always get these characters to appear in your data using an entity reference 46
47 Well-Formed XML (part 8) Entity Reference Escape sequence for reserved characters General form: &refname; Reserved character Entity Reference < < > > " ' & & 47
48 Well-Formed XML (part 9) Putting it all together in an example <?xml version= 1.0?> <question instruction= Press ENTER for the answer... > <content>true or false:</content> <content>6 < 7</content> </question> 48
49 Other XML Syntax Some features added to the basic XML syntax of elements and attributes to provide a fully functional markup language: XML declaration Processing Instructions Comments CDATA 49
50 XML declaration Identifies intent that a text file is (supposed to be) an XML document Not strictly required but a best practice If present, it must be the 1 st line of the prolog Before any comments, processing instructions, and the root element <?xml version= 1.0 encoding= UTF-16 standalone= yes?> 50
51 XML declaration (part 2) Note that this is not an element version attribute is required Value must be 1.0 (until a new standard is released) encoding attribute is optional (default: UTF-8) Describes how text in document is encoded Typical values are UTF-8 (universal transformation format 8 bit byte ASCII) or UTF-16 (Unicode) an incorrect value can cause your document to be read (or displayed) incorrectly standalone attribute is optional (default: no) Indicates whether the document relies on an external DTD (more later) or not Really a hint since parsers decide what to do with this value 51
52 Processing Instructions An XML document may include processing instructions Intent is that some application will read the document and interpret these instructions as some kind of command or guidance General form:<?target instructions?> Typically used to inform parser/browser that XML document is associated with a particular CSS or XSL file Triggers the transformation 52
53 Processing Instructions (part 2) Not restricted to prolog But can t appear inside an element s tag Example <?xml-stylesheet type= text/css href= mysheet.css?> More about these when we look at CSS and XSLT 53
54 Comments Provide additional information about the document s contents Parser will ignore the comments Really exist only for human reader General form: <!-- comment here --> Be very careful to close the comment! 54
55 CDATA Forces text (including markup) to be treated as character data Easiest way to handle element text that contain a lot of illegal characters So you don t have to use entity references for all of them Can occur anywhere in the root element or its children Cannot be nested 55
56 CDATA (part 2) General form: <![CDATA[ ]]> your raw character data here 56
57 CDATA (part 2) Example: <example> This is some raw HTML: <![CDATA[<html> <head><title>xml Course</title></head> <body bgcolor="blue"><p>this is some text.</p></body></html>]]> </example> 57
58 Unit 1: Summary XML is a low-level syntax used to represent structured data in text The basis for many technologies that build on XML 1.0 to solve particular problems for general or specific domains Platform-independent with broad vendor support and a lot of tools 58
59 Unit 1: Summary (continued) Primary building blocks Elements Attributes applied to element appear in start-tag XML document must be well-formed: Exactly one root element (a.k.a. document element) Every element has a start-tag and an end-tag Element tags cannot overlap Attribute values must be enclosed in single or double quotes Reserved characters (< > & " ') need to be replaced with entity references 59
60 For next unit Class readings: see Syllabus Namespaces DTDs Validating XML documents Also: Visit and see the breadth of technologies that are related to XML Choose an XML parser, XSLT tool, etc. Install it Try it out on some XML examples to get comfortable with it 60
Information 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 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 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 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 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 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 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 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 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 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 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 information11. EXTENSIBLE MARKUP LANGUAGE (XML)
11. EXTENSIBLE MARKUP LANGUAGE (XML) Introduction Extensible Markup Language is a Meta language that describes the contents of the document. So these tags can be called as self-describing data tags. XML
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 informationMarkup Languages SGML, HTML, XML, XHTML. CS 431 February 13, 2006 Carl Lagoze Cornell University
Markup Languages SGML, HTML, XML, XHTML CS 431 February 13, 2006 Carl Lagoze Cornell University Problem Richness of text Elements: letters, numbers, symbols, case Structure: words, sentences, paragraphs,
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 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 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 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 informationThe XML Metalanguage
The XML Metalanguage Mika Raento mika.raento@cs.helsinki.fi University of Helsinki Department of Computer Science Mika Raento The XML Metalanguage p.1/442 2003-09-15 Preliminaries Mika Raento The XML Metalanguage
More informationWell-formed XML Documents
Well-formed XML Documents Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Dept. of Computer Engineering Khon Kaen University 1 Agenda Types of XML documents Why Well-formed XML Documents
More informationXML. Jonathan Geisler. April 18, 2008
April 18, 2008 What is? IS... What is? IS... Text (portable) What is? IS... Text (portable) Markup (human readable) What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future)
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 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 p. 1 An XML Primer p. 5 History of XML p. 6 Benefits of XML p. 11 Components of XML p. 12 BNF Grammar p. 14 Prolog p. 15 Elements p.
Introduction p. 1 An XML Primer p. 5 History of XML p. 6 Benefits of XML p. 11 Components of XML p. 12 BNF Grammar p. 14 Prolog p. 15 Elements p. 16 Attributes p. 17 Comments p. 18 Document Type Definition
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 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 informationW3C XML XML Overview
Overview Jaroslav Porubän 2008 References Tutorials, http://www.w3schools.com Specifications, World Wide Web Consortium, http://www.w3.org David Hunter, et al.: Beginning, 4th Edition, Wrox, 2007, 1080
More informationChapter 1. Creating XML Documents
4033ch01.qxd 9/11/01 9:18 AM Page 3 Chapter 1 Creating XML Documents The extensible Markup Language (XML) is a text- and data-formatting language that, like HTML, has a tagbased syntax. At first glance,
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Semester 2, 2017 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid= 2465 1
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 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 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 informationXML Metadata Standards and Topic Maps
XML Metadata Standards and Topic Maps Erik Wilde 16.7.2001 XML Metadata Standards and Topic Maps 1 Outline what is XML? a syntax (not a data model!) what is the data model behind XML? XML Information Set
More informationXML: Extensible Markup Language
XML: Extensible Markup Language CSC 375, Fall 2015 XML is a classic political compromise: it balances the needs of man and machine by being equally unreadable to both. Matthew Might Slides slightly modified
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 informationXML: Managing with the Java Platform
In order to learn which questions have been answered correctly: 1. Print these pages. 2. Answer the questions. 3. Send this assessment with the answers via: a. FAX to (212) 967-3498. Or b. Mail the answers
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 informationextensible Markup Language (XML) Basic Concepts
(XML) Basic Concepts Giuseppe Della Penna Università degli Studi di L Aquila dellapenna@univaq.it http://www.di.univaq.it/gdellape This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike
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 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 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 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. 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 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 informationDelivery Options: Attend face-to-face in the classroom or remote-live attendance.
XML Programming Duration: 5 Days Price: $2795 *California residents and government employees call for pricing. Discounts: We offer multiple discount options. Click here for more info. Delivery Options:
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 informationTagSoup: A SAX parser in Java for nasty, ugly HTML. John Cowan
TagSoup: A SAX parser in Java for nasty, ugly HTML John Cowan (cowan@ccil.org) Copyright This presentation is: Copyright 2002 John Cowan Licensed under the GNU General Public License ABSOLUTELY WITHOUT
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 informationIntroduction 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 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 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 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 informationXML for Java Developers G Session 2 - Sub-Topic 1 Beginning XML. Dr. Jean-Claude Franchitti
XML for Java Developers G22.3033-002 Session 2 - Sub-Topic 1 Beginning XML Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences Objectives
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 informationXML: and related technologies
XML" XML: and related technologies extensible Markup Language (XML) Is a meta-language that describes the content of the document (self-describing data) XML does not specify the tag set or grammar of the
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 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 informationIntro to XML. Borrowed, with author s permission, from:
Intro to XML Borrowed, with author s permission, from: http://business.unr.edu/faculty/ekedahl/is389/topic3a ndroidintroduction/is389androidbasics.aspx Part 1: XML Basics Why XML Here? You need to understand
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 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 information7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language
7.1 Introduction - SGML is a meta-markup language - Developed in the early 1980s; ISO std. In 1986 - HTML was developed using SGML in the early 1990s - specifically for Web documents - Two problems with
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 informationDelivery Options: Attend face-to-face in the classroom or via remote-live attendance.
XML Programming Duration: 5 Days US Price: $2795 UK Price: 1,995 *Prices are subject to VAT CA Price: CDN$3,275 *Prices are subject to GST/HST Delivery Options: Attend face-to-face in the classroom or
More informationXML is a popular multi-language system, and XHTML depends on it. XML details languages
1 XML XML is a popular multi-language system, and XHTML depends on it XML details languages XML 2 Many of the newer standards, including XHTML, are based on XML = Extensible Markup Language, so we will
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 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 informationXDS An Extensible Structure for Trustworthy Document Content Verification Simon Wiseman CTO Deep- Secure 3 rd June 2013
Assured and security Deep-Secure XDS An Extensible Structure for Trustworthy Document Content Verification Simon Wiseman CTO Deep- Secure 3 rd June 2013 This technical note describes the extensible Data
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 informationH2 Spring B. We can abstract out the interactions and policy points from DoDAF operational views
1. (4 points) Of the following statements, identify all that hold about architecture. A. DoDAF specifies a number of views to capture different aspects of a system being modeled Solution: A is true: B.
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 informationPART. Oracle and the XML Standards
PART I Oracle and the XML Standards CHAPTER 1 Introducing XML 4 Oracle Database 10g XML & SQL E xtensible Markup Language (XML) is a meta-markup language, meaning that the language, as specified by the
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 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 informationChapter 10: Understanding the Standards
Disclaimer: All words, pictures are adopted from Learning Web Design (3 rd eds.) by Jennifer Niederst Robbins, published by O Reilly 2007. Chapter 10: Understanding the Standards CSc2320 In this chapter
More informationData Exchange. Hyper-Text Markup Language. Contents: HTML Sample. HTML Motivation. Cascading Style Sheets (CSS) Problems w/html
Data Exchange Contents: Mariano Cilia / cilia@informatik.tu-darmstadt.de Origins (HTML) Schema DOM, SAX Semantic Data Exchange Integration Problems MIX Model 1 Hyper-Text Markup Language HTML Hypertext:
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 informationCopyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1
Slide 27-1 Chapter 27 XML: Extensible Markup Language Chapter Outline Introduction Structured, Semi structured, and Unstructured Data. XML Hierarchical (Tree) Data Model. XML Documents, DTD, and XML Schema.
More informationXML. Part I XML Document and DTD
XML Part I XML Document and DTD What is XML? XML = Extensible Markup Language A Mark up language Designed based on SGML with less complexity Goal: data interchange over the web What is XML? เป ด น อย HTML
More informationSemantic Web. XML and XML Schema. Morteza Amini. Sharif University of Technology Fall 94-95
ه عا ی Semantic Web XML and XML Schema Morteza Amini Sharif University of Technology Fall 94-95 Outline Markup Languages XML Building Blocks XML Applications Namespaces XML Schema 2 Outline Markup Languages
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 informationElectronic Commerce Architecture Project LAB ONE: Introduction to XML
Electronic Commerce Architecture Project LAB ONE: Introduction to XML An XML document has two required parts. The first is the definition of what data should be in the document. The second is the document
More informationXML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior
XML Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior XML INTRODUCTION 2 THE XML LANGUAGE XML: Extensible Markup Language Standard for the presentation and transmission of information.
More informationWeb Standards Mastering HTML5, CSS3, and XML
Web Standards Mastering HTML5, CSS3, and XML Leslie F. Sikos, Ph.D. orders-ny@springer-sbm.com www.springeronline.com rights@apress.com www.apress.com www.apress.com/bulk-sales www.apress.com Contents
More informationXML and DTD. Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 28
1 / 28 XML and DTD Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 28 1 Introduction 2 XML syntax 3 Namespace 4 Document Type Definition (DTD) 5 Exercises Outline 3 / 28 1 Introduction
More information[MS-XML]: Microsoft Extensible Markup Language (XML) 1.0 Fourth Edition Standards Support Document
[MS-XML]: Microsoft Extensible Markup Language (XML) 1.0 Fourth Edition Standards Support Document Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft
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 informationXML Update. Royal Society of the Arts London, December 8, Jon Bosak Sun Microsystems
XML Update Royal Society of the Arts London, December 8, 1998 Jon Bosak Sun Microsystems XML Basics...A-1 The XML Concept...B-1 XML in Context...C-1 XML and Open Standards...D-1 XML Update XML Basics XML
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 informationXML. Presented by : Guerreiro João Thanh Truong Cong
XML Presented by : Guerreiro João Thanh Truong Cong XML : Definitions XML = Extensible Markup Language. Other Markup Language : HTML. XML HTML XML describes a Markup Language. XML is a Meta-Language. Users
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 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. extensible Markup Language. ... and its usefulness for linguists
XML extensible Markup Language... and its usefulness for linguists Thomas Mayer thomas.mayer@uni-konstanz.de Fachbereich Sprachwissenschaft, Universität Konstanz Seminar Computerlinguistik II (Miriam Butt)
More informationIntroduction to XML. When talking about XML, here are some terms that would be helpful:
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
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)
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 informationCOPYRIGHTED MATERIAL. Contents. Part I: Introduction 1. Chapter 1: What Is XML? 3. Chapter 2: Well-Formed XML 23. Acknowledgments
Acknowledgments Introduction ix xxvii Part I: Introduction 1 Chapter 1: What Is XML? 3 Of Data, Files, and Text 3 Binary Files 4 Text Files 5 A Brief History of Markup 6 So What Is XML? 7 What Does XML
More informationCSCI S-Q Lecture #12 7/29/98 Data Structures and I/O
CSCI S-Q Lecture #12 7/29/98 Data Structures and I/O Introduction The WRITE and READ ADT Operations Case Studies: Arrays Strings Binary Trees Binary Search Trees Unordered Search Trees Page 1 Introduction
More informationIntroduction to Semistructured Data and XML. Contents
Contents Overview... 106 What is XML?... 106 How the Web is Today... 108 New Universal Data Exchange Format: XML... 108 What is the W3C?... 108 Semistructured Data... 110 What is Self-describing Data?...
More informationAgenda. XML Generics. XML for Java Developers G Session 1 - Main Theme Markup Language Technologies (Part I)
XML for Java Developers G22.3033-002 Session 1 - Main Theme Markup Language Technologies (Part I) Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical
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 information