2a.1 Brief outline of mark-up languages and XML ITCS 4146/5146 Grid Computing, UNC Charlotte, B. Wilkinson, 2007 Jan 22, 2007.

Slides:



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

CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
HTML popo.
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
II. Basic Web Concepts.
An Introduction to XML Based on the W3C XML Recommendations.
Grid Computing, B. Wilkinson, 20043a.1 WEB SERVICES Introduction.
2.1 We said that grid computing is now based upon Internet protocols. So let’s first review some well-known Internet technologies. It is expected that.
Tutorial 11 Creating XML Document
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
Developing a Basic Web Page with HTML
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
C.1 Review of the XML Mark-Up Language © 2010 B. Wilkinson/Clayton Ferner. Spring 2010 Grid computing course. slidesC-1.ppt Modification date: Feb 26,
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
Website Development & Management Creating Web Pages CIT Fall Instructor: John Seydel, Ph.D.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
Grid Computing, B. Wilkinson, Reading Assignments Since there is no assigned textbook, there will be a few reading assignments. Purpose is to.
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.
Course Content - Chapter 2 Introduction to HTML Introduction to a Text Editor as a web authoring tool Instructional Activity: Creating a webpage using.
C.1 Review of the XML Mark-up Language Slides for Grid Computing: Techniques and Applications by Barry Wilkinson, Chapman & Hall/CRC press, © Appendix.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
2a.1 A review of the XML mark-up language Copyright B. Wilkinson, This material is the property of Professor Barry Wilkinson (UNC-Charlotte) and.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
XML Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
Introduction to HTML Year 8. What is HTML O Hyper Text Mark-up Language O The language that all the elements of a web page are written in. O It describes.
Introduction to XML XML – Extensible Markup Language.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
CSS THE MISSING MANUAL Introduction. Benefits of CSS Style sheets offer more formatting choices than are offered in straight HTML  EXAMPLE: When you.
1 HTML: HyperText Markup Language Representation and Management of Data on the Internet.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XML Extensible Markup Language
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Glencoe Introduction to Web Design Chapter 4 XHTML Basics 1 Review Do you remember the vocabulary terms from this chapter? Use the following slides to.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
XML QUESTIONS AND ANSWERS
Web Services Introduction
Presentation transcript:

2a.1 Brief outline of mark-up languages and XML ITCS 4146/5146 Grid Computing, UNC Charlotte, B. Wilkinson, 2007 Jan 22, 2007

2a.2 Mark-up Languages A way of describing information in a document. Standard Generalized Mark-Up Language (SGML) A mark-up language specification ratified in Key aspect - using pairs of tags that surround information - a begin tag and a matching end tag. Example ITCS 4146 home page

2a.3 Questions 1.Put your and up if you know HTML 2.Put your hand up if you know XML If yes to both, next part will be easy.

2a.4 HyperText Markup Language (HTML) A mark-up language used in web pages. “Hypertext” refers to the text’s ability to link to other documents. “Markup” refers to providing information to tell browser how to display page and other things.

2a.5 HTML page format Signifies an HTML document Head section includes information about document - “metadata” Body section contains text and references to images to be displayed End of document

2a.6 HTML Tags Tags specify details such as type of text. Example to start bold text to end bold text to start italic text to end italic text

2a.7 HTML page Hello world My name is Barry

2a.8 Question What does the previous HTML page display? Answer Hello World My name is Barry

2a.9 HTML page Hello world My name is Barry Line break tag - some tags in HTML are not in pairs

2a.10 Attributes Many tags can have attributes which specify something about the body between tag pair. Example This text is displayed in red in Times font, about 12 pt. Attributes

2a.11 Extensible Mark-up Language XML Ratified in very important standard mark-up language - a “simplified” SGML. Developed to represent textual information in a structured manner that could be read and interpreted by a computer. A foundation for web services and grid services.

2a.12 Some key aspects of XML Tags always used in pairs delineate information to make it easy to process. (Exception: when body between tags holds nothing. Then a single tag can be used.) Tags can be nested. Names of tags are not fixed/predefined as in HTML. Creates multitude of “XML” languages.

2a.13 XML Tag Attributes As in HTLM, provides a way of providing information rather than in the body between the tags. Use of attributes rather than the body is application dependent. Often have both attributes and a body.

2a.14 XML used for two areas: –Document-centric XML Documents usually meant for humans, (could be processing by computers). Semi-structured - some tags placed more-or-less anywhere, similar to HTML tags. –Data-centric XML Usually generated and meant to be read by computer programs. Structured. Nesting useful to create a clearly structured and computer-readable document. As we shall see, even when generated by computer programs, programmers still have to be able to read these documents to fully understand what’s going on

2a.15 Sample document-centric XML Prerequisites for grid computing course Spring 2007 CS I Programming I or equivalent CS II Programming II or equivalent desirable Able to program in Java or learn quickly. Able to program in C/C++ or learn quickly. Able to use Linux system or learn quickly. For more information look at Outline.

2a.16 Sample data-centric XML Department of Computer Science University of North Carolina at Charlotte 9201 University City Blvd. Charlotte NC Department of Computer Science University of North Carolina at Charlotte 9201 University City Blvd. Charlotte NC computer system type 1234 Unmanaged 16 port GigE switch.

2a.17 Example of attributes and a body computer system type 1234 Attributes Body of element

2a.18 Structure of an XML document Optional Prolog Root Element

2a.19 Prolog Includes: Processing instruction to specify how to process document. Uses symbol sequence: Meta-information about document, and comments.

2a.20 Root element Root element contains contents of document. Other elements are within root element and can be nested.

2a.21 XML Tags Name of tags and meaning need to defined, just as variables are given names in a programs and need to be defined. As in programming languages, restrictions. Case sensitive. Start with a letter.

2a.22 Question How are variable names defined (declared) in a programs? Answer Using variable definitions at top of program Example int pi;

2a.23 Question How are the meanings for variable names defined (declared) in a programs? Answer Using comments: Example int pi; // this represents 

2a.24 Defining tags in a XML Document Type Definitions Uses tags either within document or contained in a separate document to specify tag information. More details see: Not a preferred approach nowadays

2a.25 XML Schema A very flexible way of handing legal tag (element) names and defining structure. An XML document with required definitions. Expressed in XML. Has notation of data types Handles namespaces (see later).

2a.26 Question If tags and structure are defined in an XML document, how does one define the tags and structure in the schema XML document? Answer We use a scheme definition language (XSD) with fixed definition of the tags and structure. Includes data types.

2a.27 XML Tags Not a single set of predefined tags as in HTML. Each document will conform to a schema (an XML language) that defines the tags and structure. Many many XML languages

2a.28 Examples WSDL Web Services Description language –XML language used to as the interface description language for web services. SAML Security Assertion Markup Language.

2a.29 schema for the particular XML document, written in XSD “language” XML document written in particular schema (particular XML language Definition of XSD Uses Other schemas Other Documents in other XML languages Structure of documents

2a.30 XML schema Document xlns:xsi=“ xsi:schemaLocation=“.. “ Associating a Schema with an instance of an XML document

2a.31 Schema validation The schema approach allows documents that are supposed to conform to XML syntax and a specific schema to be checked against the scheme, prior to processing.

2a.32 Two formal aspects Well-formedness – document conforms to rules of XML syntax. Validity – checks the structure and identity of elements etc. that the document should have from that schema.

2a.33 Namespace Mechanism Namespace mechanism allows author to provide logical domains for parts of the document. Allows XML documents to combined, where each document uses same tag names to mean different things. With namespace mechanism, tags given additional namespace identifier to qualify it.

2a.34 Qualifying names Qualified name given by namespace identifier and name used in document: Qualified name = namespace identifier + local name

2a.35 Namespace identifier Uses URI’s (Uniform Resource Identifiers) - web naming mechanism. URLs are a subset of URIs, and would typically be used, e.g.:

2a.36 Associating namespace identifier with local name Names in document given a prefix, i.e.: Namespace identifier associated with prefix in root element:: xmlns:mypo=“

2a.37 Namespace Example Computer, Pentium IV, 4.7 Ghz, 4 Gbytes main memory prefix

2a.38 Can apply namespace to every tag without a prefix automatically if that is required: Computer, Pentium IV, 4.7 Ghz, 4 Gbytes main memory

2a.39 The name space given by the xmlns tag becomes the default namespace unless overridden by a prefix.

2a.40 XML Schema Structure Example <myRootElement xmlns= myMathService> … … … Here all tags without prefixes have the namespace given

2a.41 XML Schema Structure Example <myRootElement xmlns:math= / myMathService> … … … Here the tag operation is qualified with the prefix math that identifies the namespace

2a.42 What XML gives you A way of describing things which can be read by computer. Used in web services to describe the service interface, how to deploy it, etc, (in separate XML documents (see later). Used in the job description document to describe a job being submitted (next set of slides)

2a.43 Sample XML documents found in the assignments

2a.44 Job description XML document (Assignment 2) (Resource specification language, RSL) /bin/echo ${GLOBUS_USER_HOME} abc GLOBUS_DUROC_SUBJOB_INDEX 0 ${GLOBUS_USER_HOME}/stdout ${GLOBUS_USER_HOME}/stderr 1 multiple

2a.45 Grid service deployment descriptor file Assignment 3 (?) WSDD language <deployment name="defaultServerConfig" xmlns=" xmlns:java=" xmlns:xsd=" <service name="examples/core/first/MathService" provider="Handler“ use="literal" style="document"> <parameter name="className“ value= "org.globus.examples.services.core.first.impl.MathService"/> share/schema/examples/MathService_instance/Math_serv ice.wsdl

2a.46 Grid service description file (First part) Assignment 3 (?) WSDL language <definitions name="MathService" targetNamespace=" mples/core/MathService_instance" xmlns=" xmlns:tns=" core/MathService_instance" xmlns:wsdl=" xmlns:wsrp=" open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2- draft-01.xsd" xmlns:wsrpw=" open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2- draft-01.wsdl" xmlns:wsdlpp=" 0/WSDLPreprocessor" xmlns:xsd="

2a.47 Last part <portType name="MathPortType" wsdlpp:extends="wsrpw:GetResourceProperty" wsrp:ResourceProperties="tns:MathResourceProperties"> Namespace These names defined earlier in document

2a.48 Quiz 1.How are tags defined in HTML? Answer

2a.49 Quiz 2.How are tags defined in XML? Answer

2a.50 Quiz 3. A pair of XML tags with empty contents: can be written as Under what circumstances would such a construction make sense? Answer

2a.51 Multiple choice Quiz Similar to WebCT quizzes What is an XML schema? (a) A way to make XML documents secure (b) A way of defining XML tags (c) A way of encoding data for transmission (d) None of the other answers

2a.52 Reference Books Several books on XML, e.g.: “Building Web Services with Java: Making sense of XML, SOAP, WSDL, and UDDI, 2nd edition” by S. Graham et al, SAMS publishing, 2004 Very good but 792 pages!!

2a.53 Additional XML materials On-line materials W3C consortium home page: W3Schools XML Tutorial :

2a.54 Questions