Presentation is loading. Please wait.

Presentation is loading. Please wait.

4 XML Schema 4 - 2 XML Schema XML Schema (W3C) Based on XML grammar, tools and technology Alternative to DTD syntax Definition in accordance with the.

Similar presentations


Presentation on theme: "4 XML Schema 4 - 2 XML Schema XML Schema (W3C) Based on XML grammar, tools and technology Alternative to DTD syntax Definition in accordance with the."— Presentation transcript:

1

2 4 XML Schema

3 4 - 2 XML Schema XML Schema (W3C) Based on XML grammar, tools and technology Alternative to DTD syntax Definition in accordance with the XML syntax Allows the definition of complex data types

4 4 - 3 Validation DTD XML Schema (W3C) Content Model Validation Datatype Validation XML Schema Part 1: Structures XML Schema Part 2: Datatypes Content Model Validation

5 4 - 4 Features Data typing concept Data types for attributes and element content User-defined data types Detailed and flexible content modeling Attribute and element grouping Refinement of content models, inheritance Modularization Self-documentation Namespace support

6 4 - 5 Example Being a Dog Is a Full-Time Job Charles M. Schulz Snoopy Peppermint Patty extroverted beagle Peppermint Patty bold, brash and tomboyish library.xml

7 4 - 6 Elements and Attributes.... Element Declaration Attribute Declaration Cardinality Built-in simple Type

8 4 - 7 Simple Data Types string boolean number float double decimal duration datetime time date... normalizedString byte long int short positiveInteger negativeInteger unsignedLong unsignedShort... Built-in simple Types Built-in Types derived from simple Types

9 4 - 8 "Russian Doll Design" Schema Element of type complexType Compositor

10 4 - 9 "Salami Slice Design" Schema

11 "Salami Slice Design" Schema Definition of "complexType" Elements

12 Schema with "Named Types" Facet Definition of "named simpleTypes" Facet

13 Schema with "Named Types" Declaration of book Element Definition of "named complexTypes"

14 Grouping Attributes and Elements

15 Compositors

16 Derivations from Simple Types xsd:restriction  xsd:maxLength, xsd:minLength  xsd:minInclusive,xsd:maxInclusive  xsd:totalDigits, xsd:fractionDigits....  xsd:pattern xsd:union xsd:list... Facets

17 Content Types Empty Content with Attribute Character Data Content with Attribute

18 Mixed Content Funny book by Charles M. Schulz. Its title ( Being a Dog Is a Full-Time Job ) says it all!

19 Documentation Top level element. Element racine...

20 Namespaces .... library.xsd Being a Dog is a Full-Time Job... library.xml

21 XML Schema and Instances Being a Dog is a Full-Time Job...

22 XML Schema and Instances Being a Dog is a Full-Time Job...

23 Summary Schema languages apply and enhance the concepts of DTDs to a more modern and consistent level. XML Schema can construct very complex content models. Moreover, it supports a complex datatyping concept.


Download ppt "4 XML Schema 4 - 2 XML Schema XML Schema (W3C) Based on XML grammar, tools and technology Alternative to DTD syntax Definition in accordance with the."

Similar presentations


Ads by Google