ACG 4401 Chapter 2 1.  A language used to create other languages  Vocabularies  Describes:  Rules and  Syntax for  Well-Formed and Valid XML Documents.

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

XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
Tutorial 11 Creating XML Document
ACG 4401 Chapter 2 1.  Meta-Language  A language that can be used to create others (vocabularies) ▪ Universal Business Language (UBL) ▪ Extensible Business.
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
ACG 4401 Chapter 2 1.  Meta-Language  A language that can be used to create others (vocabularies) ▪ Universal Business Language (UBL) ▪ Extensible Business.
Copyright © 2003 Pearson Education, Inc. Slide 2-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
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.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
XML A Single Entity. xml a single entity Objectives Objectives :  understand the data model  describe the XML Document  describe the XML Schema  describe.
ACG 5405 Introduction to XBRL. Networked What does it mean to be networked? –It means the ability to pass data between software applications across a.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
August Chapter 2 - Markup and Core Concepts Learning XML by Erik T. Ray Slides were developed by Jack Davis College of Information Science and Technology.
XML Syntax - Writing XML and Designing DTD's
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Session IV Chapter 9 – XML Schemas
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
Avoid using attributes? Some of the problems using attributes: Attributes cannot contain multiple values (child elements can) Attributes are not easily.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
Advanced Accounting Information Systems Day 30 Introduction to XBRL November 4, 2009.
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.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding How XML Works Ellen Pearlman Eileen Mullin Programming the.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
What it is and how it works
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.
Advanced Accounting Information Systems Day 31 XML Language Foundation November 6, 2009.
ACG 4401 Chapter 2 1.  Meta-Language  A language that can be used to create others (vocabularies) ▪ Universal Business Language (UBL) ▪ Extensible Business.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Jennifer Widom XML Data Introduction, Well-formed XML.
ACG 5405 Introduction to XBRL. Networked What does it mean to be networked? –It means the ability to pass data between software applications across a.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… XML Syntax v2.0.
Information Design Trends Unit 4: Sources and Standards Lecture 3: A Brief Introduction to XML.
XML & UBL ACG 6415 Chapter 2. Extensible Markup Language - XML Meta-Language A language that can be used to create others (vocabularies) Universal Business.
Advanced Accounting Information Systems
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
ACG 4401 Chapter 2 1.  A language used to create other languages  Vocabularies  Describes:  Rules &  Syntax  For Structuring Documents!  Does NOT.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
PART 1 XML Basics. Slide 2 Why XML Here? You need to understand the basics of XML to do much with Android All of they layout and configuration files are.
Advanced Accounting Information Systems Day 34 XBRL Instance Documents and Taxonomies November 13, 2009.
ACG 5405 Introduction to XBRL. What is a Supply Chain?
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
ACG 5405 Introduction to XBRL. What is a Supply Chain?
Advanced Accounting Information Systems Day 28 Introduction to XBRL October 30, 2009.
ACG 5405 Introduction to XBRL. What is a Supply Chain?
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.
Unit 4 Representing Web Data: XML
XML & UBL ACG 6415 Chapter 2.
Chapter 7 Representing Web Data: XML
XML Data Introduction, Well-formed XML.
14 XML.
Review of XML IST 421 Spring 2004 Lecture 5.
XML IST 421.
Presentation transcript:

ACG 4401 Chapter 2 1

 A language used to create other languages  Vocabularies  Describes:  Rules and  Syntax for  Well-Formed and Valid XML Documents ▪ Structuring Documents!  Does NOT describe tag names 2

 Meta-Language  A language that can be used to create others (vocabularies) ▪ Universal Business Language (UBL) ▪ Extensible Business Reporting Language (XBRL)  Application has sets of xml documents  Instance Document.xml ▪ contains the data (chapter 2 & Chapter 4)  Schema Document.xsd ▪ Describes allowed structure (data types, element names) of instance document (chapter 3)  Stylesheet.xsl ▪ Formatting instructions for data in the instance document (chapter 5)

 Preferred way of moving data between software applications.  So why not use it to move accounting data? 4

 Well Formed documents  meet basic rules for XML (chapter 2)  Valid documents  Meets rules regarding structure, order and data- types as described in Schema (chapter 3) 5

TTags MMeta-data ▪d▪description of data enclosed within brackets ▪ <> opening /> closing EElement OOpening tag, data, and Closing tag ▪<▪<instructor>Dr. Hornik</instructor> AAttribute ▪D▪Data that adds meaning to the data adding meaning to the data ▪D▪Data describing the tag ▪<▪<Instructor Department=“Accounting”>Dr. Hornik</Instructor> XXML does not prescribe Tags to be used AAnyone can make up tags <tag> for any purpose as long as XML document is well- formed. 6

1. The first line of an XML document must contain the prologue. 2. The main theme of the XML document – the root element - must enclose all the other elements in the document. There can be only one root element. 3. Every element must have an opening tag name <> and a closing tag name and they must match (case sensitive).  Documents can have empty elements. ▪

4. Elements must be properly nested, that is you close the tag that was opened last – think of tags as using a LIFO convention or more properly a LOFC Last Opened First Closed convention (though it doesn’t have quite the same ring to it). 5. Elements can have attributes.  Attributes follow the opening tag name ▪ attributeName=“attributeValue” ▪ attributeName is not included in the closing tag

 Every XML document starts with a prolog  It lets the XML enabled processor know that this is an XML document to be processed  UCS Transformation Format—8-bit) is a variable-width encoding that can represent every character in the Unicode character set.  Comment

 Hierarchy  Child/Simple ▪ Encloses Data ▪ Dr. Hornik  Parent/Complex ▪ Does not enclose data ▪ Encloses/Contains other elements ▪  Dr. Hornik ▪  Root Element (special parent element) ▪ Encloses All other elements in Instance Document 10 Parent Child

Belmopan Cayo Belize Belmopan is the capital of Belize Belmopan was established following the devastation of the former capital,Belize City, by Hurricane Hattie in High ground and open space influenced the choice and ground-breaking began in By 1970 most government offices and operations had already moved to the new location. Root element Parent element

Universal Business Language 12

 Organization for the Advancement of Structured Information Standards (OASIS)  Complete XML based library of business document  A Dictionary of standard, predefined element names and  A Library of standard, predefined documents  Where the elements can appear 13

14

 When possible UBL uses the same structure for elements in different documents  PostalAddress can be used in:  Catalogue  Purchase Order  Invoice  … ▪ So it has the same structure ▪ Main St. ▪ 56A ▪ Newark ▪ ▪ DE ▪ ▪ USA ▪

 Each has a unique Root Element  Each has a required ID (child element)  Uniquely Identify document  Each has a required IssueDate (child element)  Determine when document is created  Optional IssueTime  Each has two Party elements (parent elements)  Provider/Supplier  Customer/Buyer  Each has at least one line element (parent element)  CatalogueLine  OrderLine

 UBL Schema’s UBL Schema’s 17

 Compare the non-Vocabulary (homegrown) based PO to the UBL PO 18

 UBL defines what the root element name is 

 Parent elements contain or enclose other elements  Root ( ) Parent of:  ▪  ▪  ▪ What are the Parent elements within this element?

 Attributes are contained within an opening element tag <>  attributeName=“attribute value”  Name-pair value   1

Processes Covered

 In-class/Windows use NotePad  Mac use TextWrangler  You must use a Text Editor (not a word processor)  XML editor – Exchanger XML Lite (PC and Mac)  Testing XML  Open in Browser (IE, Firefox, Safari??)  If it opens it’s well formed  If you receive an error message it’s not 23

 Assume Customers place Pizza Order over phone  What data is captured with order?  Customer ▪ Phone# ▪ Name ▪ Address  Order ▪ Items ▪ Delivery/Pickup ▪ Total Amount 24

 Sample Despatch Advice Sample Despatch Advice

26