HO-8: Creating a DTD and validating XML

Slides:



Advertisements
Similar presentations
Loading Excel Double click the Excel icon on the desktop (if you have this) OR Click on Start All Programs Microsoft Office Microsoft Office Excel 2003.
Advertisements

XHTML 16-Apr-17.
Review Writing XML  Style  Common errors 1XML Technologies David Raponi.
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
1 Lab Session-6 CSIT-121 Spring 2005 Structured Choice The do~While Loop Lab Exercises.
TMP112 Calibration. Slope 1 (Max) Slope 2 (Max) Slope 3 (Max) Slope 1 (Min) Slope 2 (Min) Slope 3 (Min) The slope regions below were created from characterization.
Document Type Definitions. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:
State of Delaware Department of Natural Resources and Environmental Control.
Using the Multiple Choice Template Copy this presentation to your hard drive. Open up slide sorter, copy slides #3, 4, and 5 each time you are going to.
Working with XHTML Creating a Well-Formed Valid Document.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
Chapter 4: Document Type Definitions. Chapter 4 Objectives Learn to create DTDs Validate an XML document against a DTD Use DTDs to create XML documents.
CIS 375—Web App Dev II WAP. 2 Introduction to WAP WAP ________________________ is an application communication protocol that uses a ______ Browser in.
1/14 ITApplications XML Module Session 2: Using and Creating XML Documents.
1 Introduction to XML Schemas using eXcelon Stylus Studio XML schema language is a standard for specifying the structure of XML documents Uses the same.
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.
XP 1 DECLARING A DTD A DTD can be used to: –Ensure all required elements are present in the document –Prevent undefined elements from being used –Enforce.
Example Write the DTD rules for the following XML fragment. Kim 34 South Street NY USA Vice President $175,000 1.
DataStage TX 6.7 (formerly Mercator 6.7) Documentation Stylesheets Includes versions for Microsoft and Saxon users.
Working with the XML Document Object Model ©NIITeXtensible Markup Language/Lesson 7/Slide 1 of 44 Objectives In this lesson, you will learn to: *Identify.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
Avoid using attributes? Some of the problems using attributes: Attributes cannot contain multiple values (child elements can) Attributes are not easily.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
CIS 451: XML DTDs Dr. Ralph D. Westfall February, 2009.
1/11 ITApplications XML Module Session 3: Document Type Definition (DTD) Part 1.
CSE3201 Information Retrieval Systems DTD Document Type Definition.
XML – A Quick Introduction Kerry Raymond (stolen from others)
Beginning XML 3 rd Edition. Chapter 4: Document Type Definitions.
1 Bulk Loading Documents* into Windchill (Screen captures from Windchill 10.1 M040) Note: All for WTDocument Type (includes MS Word, Autocad, pdf, etc.)
XML DTD. XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
Advance Database S Week-6 Dr.Kwanchai Eurviriyanukul
ECPIC v6.6 Release Guidance to use eCPIC for a Successful BY16 A-11 Submission August 28,
CSC 480 Software Engineering PSP Project 1 August 20, 2004.
Struts2 Validation using XML Approach. May 12, 2011 Need For Validation Validation can be defined as the assessment of an action so as to ensure that.
Week-9 (Lecture-1) XML DTD (Data Type Document): An XML document with correct syntax is called "Well Formed". An XML document validated against a DTD is.
From InDiCo to JACoW in one (well maybe a few) click(s) J. Poole.
Creating Groups of Elements and Attributes in an XML Schema ©NIITeXtensible Markup Language/Lesson 4/Slide 1 of 28 Objectives In this lesson, you will.
To the Switching Statistics Overview Online Training Course
Document Type Definition
Creating a Well-Formed Valid Document
Tutorial 9 Working with XHTML
Bulk Loading Documents* into Windchill
continued on next slide
Validation Bury College.
The XML Language.
Aaron Zeckoski Sakai Tool Naming Tips Aaron Zeckoski
                                                                                                                                                                                                                                                
continued on next slide
continued on next slide
Tutorial 9 Working with XHTML
XML Data DTDs, IDs & IDREFs.
Hibernate Bayu Priyambadha, S.Kom.
XML מבוא כללי פרק ב' MCSD Doron Amir
New Perspectives on XML
r4=2 c4=1 r2=1 d4=6 c2=2 d2=5 r5=2 c5=1 d5=8 r1=0 c1=2
Android: Shapes.
International Classifications and Standards Division
½ of 6 = 3.
CATEGORY ONE Enter category name on this slide..
HTML5 - 2 Forms, Frames, Graphics.
The End Min of 9 slides Max of 15 slides You will have 1 minute to explain supply and demand. This project is worth 50 summative points. 10pts -2 graphs.
Beginning Sounds! Match It! Click here to play..
Android: Shapes.
continued on next slide
Types of Errors And Error Analysis.
HO-16: Querying Diamonds with XPath
continued on next slide
Presentation transcript:

HO-8: Creating a DTD and validating XML You have been given an XML file that contains a list of products and their associated prices (shown on the next slide). The file name is called products.xml. You have been tasked with the following: a) Create a DTD based on the products XML file. b) Validate your XML file against the DTD. c) Extend your XML file to include 2 additional products of your choice. d) Validate your XML file again to ensure no errors have been made whilst entering your data.

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE products SYSTEM "products.dtd"> <products> <product id="12344"> <name>Orange SPV</name> <description>Orange WAP phone</description> <price> <currency>£</currency> <amount>123.23</amount> </price> <contract min="3" max="12" durationtype="month"> <option>Lost and stolen insurance</option> <option>Free replacement if damaged</option> </contract> </product> <product id="125674"> <name>Sony Ericsson</name> <description>Walkman</description> <amount>199.00</amount> </products> Filename: Products.xml