Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML, SCHEMAS, DTD The primer Brendan Knight. XML  XML stands for eXtensible Markup Language.  XML is designed to transport and store data.  Contains.

Similar presentations


Presentation on theme: "XML, SCHEMAS, DTD The primer Brendan Knight. XML  XML stands for eXtensible Markup Language.  XML is designed to transport and store data.  Contains."— Presentation transcript:

1 XML, SCHEMAS, DTD The primer Brendan Knight

2 XML  XML stands for eXtensible Markup Language.  XML is designed to transport and store data.  Contains elements: An element can contain: other elements text attributes or a mix of all of the above...

3 SCHEMAS An XML schema describes the structure of an XML document. The XML Schema language is also referred to as XML Schema Definition (XSD). We can also use a DTD

4 DTD A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes.A DTD can be declared inline inside an XML document, or as an external reference.

5 XML and CSS We can display our XML using cascading style sheets. These dictate the LOOK of the data display CSS is not the only way we can do this

6 Example XML <?xml- stylesheet type="text/css" href="cd_catalog.css"? > Empire Burlesque Bob Dylan USA Columbia 10.90 1985

7 Apply this css CATALOG{background-color: #ffffff;width: 100%;} CD{display: block;margin-bottom: 30pt;margin-left: 0;} TITLE{color: #FF0000;font-size: 20pt;} ARTIST{color: #0000FF;font-size: 20pt;} COUNTRY,PRICE,YEAR,COMPANY{display: block;color: #000000;margin- left: 20pt;}

8 All together Empire Burlesque Bob Dylan USA Columbia 10.90 1985

9 XML, SCHEMAS, DTD Brendan Knight

10 XML, SCHEMAS, DTD Reference :Displaying xml using css http://www.w3schools.com/xml/xml_display.asp http://www.w3schools.com/xml/xml_display.asp You can check your xml at http://www.w3schools.com/xml/xml_validator.asp Tutorial is at http://www.w3schools.com/xml/ please do ithttp://www.w3schools.com/xml/


Download ppt "XML, SCHEMAS, DTD The primer Brendan Knight. XML  XML stands for eXtensible Markup Language.  XML is designed to transport and store data.  Contains."

Similar presentations


Ads by Google