Presentation is loading. Please wait.

Presentation is loading. Please wait.

ACG 4401 Chapter 2 1.  A language used to create other languages  Vocabularies  Describes:  Rules &  Syntax  For Structuring Documents!  Does NOT.

Similar presentations


Presentation on theme: "ACG 4401 Chapter 2 1.  A language used to create other languages  Vocabularies  Describes:  Rules &  Syntax  For Structuring Documents!  Does NOT."— Presentation transcript:

1 ACG 4401 Chapter 2 1

2  A language used to create other languages  Vocabularies  Describes:  Rules &  Syntax  For Structuring Documents!  Does NOT describe tag names 2

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

4  Tags  Meta data description of data enclosed within brackets <>, opening or closing  Element  Opening tag, data, and Closing tag ▪ Dr. Hornik  Attribute ▪ Data that adds meaning to the data adding meaning to the data ▪ Data describing the tag ▪ Dr. Hornik 4

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

6  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  Schema Document.xsd ▪ Describes allowed structure (data types, element names) of instance document  Stylesheet.xsl ▪ Formatting instructions for data in the instance document  All XML documents must be well-formed....

7 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.  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”

8  Every XML document starts with a prolog  It lets the XML enabled processor know that this is an XML document to be processed  Comment

9 Belmopan Cayo Belize 11100 5 130 88.44 17.27 Belmopan is the capital of Belize Belmopan was established following the devastation of the former capital,Belize City, by Hurricane Hattie in 1965. High ground and open space influenced the choice and ground-breaking began in 1966. By 1970 most government offices and operations had already moved to the new location. Root ElementParent Element

10  Some Twitter files  https://twitter.com/statuses/friends/shornik.xml https://twitter.com/statuses/friends/shornik.xml  https://twitter.com/statuses/public_timeline.xml https://twitter.com/statuses/public_timeline.xml

11 Universal Business Langauge 11

12  Organization for the Advancement of Structured Information Standards (OASIS)  Complete XML based library of business documents 12

13  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 19716 DE ▪ ▪ USA ▪

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

15  UBL Schema’s UBL Schema’s 15

16  UBL defines what the root element name is 

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

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

19 Processes Covered

20  Sample Despatch Advice Sample Despatch Advice

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

22  Will use NotePad  You can use any Text Editor  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 22


Download ppt "ACG 4401 Chapter 2 1.  A language used to create other languages  Vocabularies  Describes:  Rules &  Syntax  For Structuring Documents!  Does NOT."

Similar presentations


Ads by Google