Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unit 10 Schema Data Processing. Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Reserved characters.

Similar presentations


Presentation on theme: "Unit 10 Schema Data Processing. Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Reserved characters."— Presentation transcript:

1 Unit 10 Schema Data Processing

2 Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Reserved characters CDATA Schema fundamentals Schema elements Schema attributes and data types XPath fundamentals XPath tree

3 XML Fundamentals Stored as text files. Can be created with any text editor. Hierarchical data storage format. Must contain at least one (root) element. File names end in.xml extension by default, but vary with use.

4 Sample XML Document XML How to Program, Figure 5.1, pg. 112

5 Key Points Elements are enclosed in angle brackets <>. The root element is the first element opened and last element closed. Inner elements in the hierarchy are called child elements.

6 Common Programming Errors Attempting to create more than one root element. Not adhering to case on element tags. Improper nesting.

7 Improper Nesting Hello World

8 XML Parsing XML How to Program, Figure 5.2, pg. 113

9 Parsing Failure XML How to Program, Figure 5.3, pg. 114

10 Characters Supports ASCII and Unicode characters Markup text is enclosed in angle brackets Character data is inserted between tags White space characters include spaces, line feeds, and carriage returns.

11 Reserved Characters Reserved for use by XML –Ampersand (&) –Left angle bracket (<) –Right angle bracket (>) –Apostrophe (') –Double quote (") Built-in entities –Ampersand (&) Built-in entities –Ampersand (&) –Left angle bracket (<) –Right angle bracket (>) –Apostrophe (&apos;) –Double quote (")

12 Book Sample XML How to Program, Figure 5.5, pg. 119 Put just the markup code (text) here.

13 Book Sample (cont'd) XML How to Program, Figure 5.5, pg. 119 Put just the graphic here.

14 CDATA Example XML How to Program, Figure 5.7, pg. 122-123 Put just the markup code (text) here.

15 CDATA Example (cont'd) XML How to Program, Figure 5.7, pg. 122-123 Put just the graphic here.

16 Schema Elements XML How to Program, Figure 7.1, pg. 168.

17 Sample Document XML How to Program, Figure 7.2, pg. 170, text only.

18 ElementType Attributes XML How to Program, Figure 7.4 and 7.5, pg. 172-173.

19 element and group Attributes XML How to Program, Figure 7.6 and 7.7, pg. 173-174

20 AttributeType Attributes XML How to Program, Figure 7.8, pg. 174.

21 Schema Sample with Attributes XML How to Program, Figure 7.10, pg. 175-176. Break at line 22 to make two slides.

22 Schema Sample with Attributes (cont'd) XML How to Program, Figure 7.10, pg. 175-176. Break at line 22 to make two slides.

23 Sample Document XML How to Program, Figure 7.11, pg. 176-177, text only.

24 Example Data Types XML How to Program, Figure 7.12, pg. 177-178.

25 Schema Sample with Data Types XML How to Program, Figure 7.13, pg. 178-179. Break at line 15 to make two slides.

26 Schema Sample with Data Types (cont'd) XML How to Program, Figure 7.13, pg. 178-179. Break at line 15 to make two slides.

27 Sample Document with Data Types XML How to Program, Figure 7.14, pg. 179-180, text only.

28 XPath Fundamentals Represents XML document as nodes. XPath structures document as hierarchical tree. Supports document navigation and data retrieval.

29 XPath Node Types XML How to Program, Figure 11.5, pg. 304. It may be necessary to break into two slides.

30 XML Document Example XML How to Program, Figure 11.1, pg. 299

31 XPath Tree XML How to Program, Figure 11.2, pg. 300

32 Axes XML How to Program, Figure 11.6, pg. 305


Download ppt "Unit 10 Schema Data Processing. Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Reserved characters."

Similar presentations


Ads by Google