Advanced Accounting Information Systems Day 31 XML Language Foundation November 6, 2009.

Slides:



Advertisements
Similar presentations
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.
Advertisements

An Introduction to XML Based on the W3C XML Recommendations.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
ACG 4401 Chapter 2 1.  Meta-Language  A language that can be used to create others (vocabularies) ▪ Universal Business Language (UBL) ▪ Extensible Business.
General Ledger and Reporting System
Unit 4 – XML Schema XML - Level I Basic.
Introduction to XML This material is based heavily on the tutorial by the same name at
ACG 4401 XML Schemas XML Namespaces XLink. + The XML Foundation Many participants – an extended family! XML Instance documents – carry data in context.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
ACG 4401 XML Schemas XML Namespaces XMLink. + The XML Foundation Many participants – an extended family! XML Instance documents – carry data in context.
ACG 4401 Introduction to XBRL. What is a Supply Chain?
ACG 4401 Chapter 2 1.  Meta-Language  A language that can be used to create others (vocabularies) ▪ Universal Business Language (UBL) ▪ Extensible Business.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
WORKING WITH NAMESPACES
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
1 XML Schemas. 2 Useful Links Schema tutorial links:
Skip 2007 Current Issues in MIS The XML Language Foundation f - Clinton E. White, Jr Professor of Accounting & MIS Lerner College of B&E University.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
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.
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
ACG 4401 Chapter 2 1.  A language used to create other languages  Vocabularies  Describes:  Rules and  Syntax for  Well-Formed and Valid XML Documents.
Consolidation and Entity Mapping: New XBRL Solutions David vun Kannon KPMG LLP.
New Perspectives on XML, 2nd Edition
An OO schema language for XML SOX W3C Note 30 July 1999.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Applying eXtensible Style Sheets (XSL) Ellen Pearlman Eileen Mullin Programming.
Advanced Accounting Information Systems Day 30 Introduction to XBRL November 4, 2009.
ACG 4401 XML Schemas XML Namespaces XLink. + The XML Foundation Many participants – an extended family! XML Instance documents – carry data in context.
ACG 4401 Chapter 2 1.  Meta-Language  A language that can be used to create others (vocabularies) ▪ Universal Business Language (UBL) ▪ Extensible Business.
XML 2nd EDITION Tutorial 4 Working With Schemas. XP Schemas A schema is an XML document that defines the content and structure of one or more XML documents.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
Tutorial 13 Validating Documents with Schemas
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
Working with XML Schemas ©NIITeXtensible Markup Language/Lesson 3/Slide 1 of 36 Objectives In this lesson, you will learn to: * Declare attributes in an.
® Foundations of XBRL: Organisation and Concepts Walter Hamscher Vice Chair, XBRL International Consultant to.
XML & UBL ACG 6415 Chapter 2. Extensible Markup Language - XML Meta-Language A language that can be used to create others (vocabularies) Universal Business.
XML Schema Definition (XSD). Definition of a Schema It is a model for describing the structure and content of data The XML Schema was developed as a content.
Advanced Accounting Information Systems
Basic HTML Document Structure. Slide 2 Goals (XHTML HTML5) XHTML Separate document structure and content from document formatting HTML 5 Create a formal.
ACG 4401 Chapter 2 1.  A language used to create other languages  Vocabularies  Describes:  Rules &  Syntax  For Structuring Documents!  Does NOT.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
ACG 6415 XML Schemas XML Namespaces XMLink. The XML Foundation  Many participants – an extended family! XML documents – carry data in context  Each.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
SEMI-STRUCTURED DATA (XML) 1. SEMI-STRUCTURED DATA ER, Relational, ODL data models are all based on schema Structure of data is rigid and known is advance.
ING XBRL Proof of Concept July 19, ©2005 page 2. Utilizing XBRL  ING Objectives  Benefits  Goals  Proof of Concept Plan  Stat  USGAAP  Pain.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Extensible Markup Language
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 6415 XBRL Instance Documents. XBRL Facts  Information Report  By a Specific Entity  Specific Period of Time  Specific Currency.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
XML Namespaces In this first lesson XML Namespaces, you will learn to:
Web Services: Principles & Technology Slide 3.1 Chapter 3 Brief Overview of XML COMP 4302/6302.
Advanced Accounting Information Systems Day 28 Introduction to XBRL October 30, 2009.
ACG 4401 XML Schemas XML Namespaces XLink.
ACG 4401 XML Schemas XML Namespaces XLink.
XML QUESTIONS AND ANSWERS
CWA3 Standardized roll-out package Part 2: XBRL Handbook for Declarers
Managers’ briefing: Why XBRL?
Eugenia Fernandez IUPUI
XAML User Interface Creation in C#
XML & UBL ACG 6415 Chapter 2.
Chapter 7 Representing Web Data: XML
XML Data Introduction, Well-formed XML.
Semi-Structured data (XML)
New Perspectives on XML
Presentation transcript:

Advanced Accounting Information Systems Day 31 XML Language Foundation November 6, 2009

Announcements –Quiz 6 –Return midterm exams –XBRL assignment due today –Sign up for graduate student presentations Monday, December 7 or Wednesday, December 9th

Objectives Introduce XML Schema language in a non- technical manner along with two other XML languages necessary for understanding UBL and XBRL – XML Namespaces and Xlink Why learn XML Schema language? –Introduction to how XML vocabularies work –Introduce concept and purpose of XML schema documents –Understand the potential for reusable data components and their role in e-business documents

Questions for today What is the purpose of the XML schema language? Distinguish between Namespaces and XLink

Accounting “data”

Markup What if we start adding metadata to this piece of accounting data? –First, mark it up with a name representing an accounting concept:

Markup To fully understand this piece of data, we need to add more context information: –First, which taxonomy is this accounting concept defined in?

Markup We of course need more context information to fully understand this piece of data –Second, what reporting context applies to this item? –Third, since this is a monetary item, what currency and precision applies? unitRef=“usd” decimals=“-3”

Markup Putting it all together we have: – a piece of marked up “information” in XBRL format that can be understood by a human or a software application

Accounting Information

XBRL XBRL taxonomies: –Agreed upon names/definitions for accounting & reporting “concepts” –Standardized = Understandable, Comparable, Efficient, Reusable, … XBRL instance documents: –Report facts tagged with agreed upon concept names

An Instance Doc & its DTS Each XBRL instance is linked to at least one XBRL taxonomy – Which in turn is linked to “linkbases” – The DTS – discoverable taxonomy suite We can precisely answer the question: What does this number, , mean? XBRL Instance Document XBRL Taxonomy (dictionary of Elements representing Concepts) How this Element relates to other Elements How this Element is calculated How this Element should be presented in a std. rpt. What labels are used for this Element What is the definition & authoritative reference for this Element

The XML Foundation and XBRL

Key terms XML language foundation –Family of languages for processing and validating XML documents and for creating other specifications/vocabularies, such as UBL and XBRL, which extend the XML family of technologies for specific purposes. XML Schema language –Key part of the foundation since it is used to specify the structure and contents of XML documents –All specifications that extend the XML family, including UBL and XBRL, are formally expressed using the XML Schema language –Complex language

UBL and XBRL vocabulary UBL –Consists of a number of XML schemas defining elements and attributes (such as ID, IssueDate, Party, PostalAddress, and Item) to be used in UBL documents (such as Catalogue, Order, Receipt Advice, Despatch Advice, and Invoice) XBRL –Number of XML schemas defining elements and attributes used for financial reporting, the structure of XBRL documents and a host of financial reporting taxonomies

Each XML Vocabulary –Created for a specific purpose –Has its own XML namespace with which it can be identified (i.e., unique identifer referred to as a URI (Universal Resource Identifier) ) URI – Can be a local name or a URL Universal Resource Locator –Namespaces Should be human readable and comptuer processable

Two basic elements in XML documents –Simple elements Contains a data value and no attributes ID, IssueDate, Name, StreetName –Complex elements Contains other elements nested within it and /or attributes ProviderParty, ReceiverParty, Party, PartyName, PostalAddress

Practice –In Figure 2.3 (OrderExampleSimple), what type of element (simple or complex) is each of the following? Country Price Item LineExtensionAmount

UBL Language Made up of many schemas We will discuss two UBL schemas –Common aggregate components –Common basic components Each schema defines UBL reusable data components – XML elements that are defined once and then reused over and over again in various UBL documents Since elements and attributes from each schema appear in XML documents, it is important to identify the namespace from which each element comes – ProviderParty – cac:ProviderParty –Cac – Common Aggregate Components Each namespace has its own ‘preferred prefix’ with which it is identified – cac, cbc Namespace is a short-hand way to identify the URI of a namespace

Namespace Declarations Needed in XML document to identify the namespaces that ‘support’ the document Since elements from different namespaces are used in this document, each must be identified with a namespace definition Namespaces –Necessary to specifically identify the namespace and schema in which an element is defined to avoid naming collisions in XML documents mlns –Reserved key word in XML language with which to declare a namespace and the root element is where this is done Heavily used in UBL and XBRL documents

Namespace Declarations Practice Looking at Figure 3.1 UBL Catalogue with namespaces, how can each namespace declaration be interpreted as? –Xmlns = “UBLCatalogueDocument” –Xmlns:cbc = “UBL CommonBasicComponents” –Xmlns:cac = “UBL CommonAggregateComponents”

The UBL Catalogue Schema Document

Creating UBL document schema Relatively simple because it adheres to the following pattern –Declare appropriate namespaces and qualifiers in the schema root element –Import the necessary schemas with import elements’ –Define the root element with a name, a complexType, and a sequence indicator if appropriate and reference (ref) the appropriate reusable data component elements from other UBL schemas

The UBL Common Basic Components Schema

Practice Using XML Schema Language, how wouldyou define each of the following two elements appearing in an instance document? Super Cy Clone 10000

The UBL Common Aggregate Components Schema

Practice Looking at UBL Catalogue and UBL Common Aggregate Components schema side by side, –What are the child elements of the cac:CatalogueLine element? –What are the child elements of the cac:item element?

Why learn UBL and its XML Schemas? Introduce concept and purpose of –XML schema documents –Potential of standardized reusable data components –Role in e-business documents

Validating XML Documents Allows one to document for obvious errors such as missing or inappropriate data, and to make sure it follows the business rules specified in its schema such as an acceptable customer and billing address XML document validation –Complex and occurs on many different levels –Validating software applications are not all created equally Most validation processing will assure that –XML document is complete and properly structured according to the document schema –With appropriate data types in the data fields –Follows specified business rules Not all XML processors are capable of validation –

Validating XML Documents

Practice Validate UBL Catalogue document and UBL Catalogue document schema using DecisionSoft XML Schema Validator

Simple Linking –Linking ability of HTML as seen in Webpages –Unidirectional from a source document to a target document –Works well for web pages but is inadequate for linking multiple documents and describing the relationships between documents or elements within documents

XML Linking Language (XLink) –Provides a method for using attributes to establish multi-directional relationships between elements in XML documents

XBRL use of Xlink language –Simple links to footnotes necessary to properly understand an accounting item –Extended links to describe the relationship between multiple items –More details in chapter 4

XML Foundation and XBRL XBRL is built on XML foundation – see figure 3.11 XML foundation –Specifies basic set of rules that all XML documents must follow and the rules for the creation of languages like XML Schema, Namespaces, and Xlink –These languages are used for processing XML documents and for creation of XML vocabularies –XBRL taxonomies specify sets of elements and attributes to be used for specific financial reporting purposes Written in XML Schema Language –XBRL linkbases Specify sets of relationships necessary for understanding accounting and financial reporting concepts such as Assets, Liabilities, and Equities Written in Xlink Language –XBRL instance documents Business reports that follow the rules specified in the XBRL 2.1 Specification and use elements defined in XBRL taxonomies

The XML Foundation and XBRL

Summary Several XML languages form the foundation for validating and processing XML documents and building XML vocabularies such as UBL and XBRL XML Schema language XML schema documents XML Namespaces XML Linking Language Basic understanding of XML foundation languages is necessary for understanding XBRL instance documents and taxonomies

Glossary of New Terms Cardinality Complex elements Empty elements Extended linking Namespace declaration Primitive data type Reusable data components Schema document Simple elements Simple liking Valid XML document XML namespace XML Schema language XML vocabulary

Questions for Monday What is the relationship between XML language and XBRL?