Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML & UBL ACG 6415 Chapter 2. Extensible Markup Language - XML Meta-Language A language that can be used to create others (vocabularies) Universal Business.

Similar presentations


Presentation on theme: "XML & UBL ACG 6415 Chapter 2. Extensible Markup Language - XML Meta-Language A language that can be used to create others (vocabularies) Universal Business."— Presentation transcript:

1 XML & UBL ACG 6415 Chapter 2

2 Extensible Markup Language - XML 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....

3 XML Rules – A well formed document The first line of an XML document must contain the prologue. 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 Every element must have an opening tag <> and a closing tag 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). Elements can have attributes. Attribute values are enclosed with “ ” and can have no spaces.

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

5 XML Concepts Prolog the first line of any XML based document Element A Tag set (the tag name, its attribute and data) John Smith Element Hierarchy Root Element Contains (or encloses) all the other elements Parent Element Contains other elements Used to represent information about one Instance of an entity For example a customer order Child Element Enclosed by Parent element Represents attributes describing the Parent Element For example: customer name, date of order, items ordered, etc. Attributes used to modify or clarify the data in an element 130

6 Element Hierarchy 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 Child Elements

7 Lets look at more xml Some Twitter files https://twitter.com/statuses/friends/shornik.xml https://twitter.com/statuses/public_timeline.xml

8 Deliver Service to Customer Jimmy Jones AutoCare Service Request Let’s build an XML Instance Document for this What data do we need? Test your XML (is it well-formed?) Open in Browser Open in Excel

9 9 Merry Maids Narrative http://acg6415.wikispaces.com/Deliver+Service+to+Customer 9

10 UBL Universal Business Language

11 Root Element The first element tag after the prolog Encloses all other elements UBL defines what the root element name is

12 Parent Elements Parent elements contain or enclose other elements Root ( ) Parent of: What are the Parent elements within this element?

13 Reusable Elements 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 Element Attributes Attributes are contained within an opening element tag <> attributeName=“attribute value” Name-pair value 575.55 1

15 UBL document Rules 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

16 UBL Models Processes Covered

17 Despatch Advice (Shipping Notice) Sample Despatch Advice


Download ppt "XML & UBL ACG 6415 Chapter 2. Extensible Markup Language - XML Meta-Language A language that can be used to create others (vocabularies) Universal Business."

Similar presentations


Ads by Google