Download presentation
Presentation is loading. Please wait.
1
4/16/2007Declare a Schema File I1
2
4/16/2007Declare a Schema File I2 Declare a Schema File A collection of semantic validation rules designed to constrain XML data values Reasons to choose Schema over DTDs
3
4/16/2007Declare a Schema File I3 Declare a Schema File The syntax of schema
4
4/16/2007Declare a Schema File I4 An Example
5
4/16/2007Declare a Schema File I5 Schema
6
4/16/2007Declare a Schema File I6 Add a Comment Comment cannot appear in
7
4/16/2007Declare a Schema File I7 Contain Other Elements
8
4/16/2007Declare a Schema File I8 Contain Other Elements
9
4/16/2007Declare a Schema File I9 Contain Other Elements
10
4/16/2007Declare a Schema File I10
11
4/16/2007Declare a Schema File I11 Contain Other Elements
12
4/16/2007Declare a Schema File I12 Declare One-Time Element A given element is associate with one – and only one – value at runtime Also called a required element
13
4/16/2007Declare a Schema File I13 Declare One-Time Element
14
4/16/2007Declare a Schema File I14 Declare One-Time Element
15
4/16/2007Declare a Schema File I15 Declare Optional Elements
16
4/16/2007Declare a Schema File I16 Declare Optional Elements
17
4/16/2007Declare a Schema File I17 Declare Repeatable Elements
18
4/16/2007Declare a Schema File I18 Declare Repeatable Elements
19
4/16/2007Declare a Schema File I19 Contain Character Data
20
4/16/2007Declare a Schema File I20 Contain Character Data
21
4/16/2007Declare a Schema File I21 Contain Character Data
22
4/16/2007Declare a Schema File I22 Contain Character Data
23
4/16/2007Declare a Schema File I23 Declare Empty Element
24
4/16/2007Declare a Schema File I24 Declare Empty Element
25
4/16/2007Declare a Schema File I25 Declare Empty Element Conceptually, elements represent data, while attributes represent metadata, or “data about data.” In other word, elements model essential information; attributes model descriptive information. Associating attributes with an element defined as empty is fairly common practice.
26
4/16/2007Declare a Schema File I26 Declare Empty Element
27
4/16/2007Declare a Schema File I27 Contain Mixed Value Declare a schema validation rule that allow an XML element to contain both – Character data – Other predefined elements
28
4/16/2007Declare a Schema File I28 Contain Mixed Value
29
4/16/2007Declare a Schema File I29 Contain Mixed Value
30
4/16/2007Declare a Schema File I30
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.