1 / 12

XML: Managing Data Exchange One-to-One Relationship Presented By: Dustin K. Pitts dkp@uga

XML: Managing Data Exchange One-to-One Relationship Presented By: Dustin K. Pitts dkp@uga.edu. 01/30/2006. Objectives XML Overview One-to-One XML Schema. Restrictions in XML Schema XML Document XML Style Sheet. XML Overview XML Schema

rowena
Download Presentation

XML: Managing Data Exchange One-to-One Relationship Presented By: Dustin K. Pitts dkp@uga

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. XML: Managing Data Exchange One-to-One Relationship Presented By: Dustin K. Pitts dkp@uga.edu 01/30/2006

  2. Objectives • XML Overview • One-to-One • XML Schema • Restrictions in XML Schema • XML Document • XML Style Sheet

  3. XML Overview XML Schema XML Style Sheet XML Document

  4. One-to-One • Definition • Data Model • Example in Code

  5. Data Model

  6. Where is Relationship? • Complex Type “countryDetails” • <xsd:element name="topDestination" type="destinationDetails" minOccurs="0" maxOccurs="1"/>

  7. Restrictions in XML Schema Replace Collapse Length, maxLength, minLength Order Indicators <all> <choice> <sequence>

  8. XML Document What does it do? See example code. Notice: <topDestination> has <all>

  9. XML Style Sheet What does this do? See example code. If Statement Greater than, Less than, various operators

  10. If Statement Operators

  11. Summary • XML Schema • Restrictions on XML Schema • XML Document • XML Style Sheet • If Statement

  12. Exercises • Create and XML schema to represent the most popular professors at a university. Use the replace function to replace all white space characters with spaces and set the maxLength to 15. Include first name, last name, department, and years teaching. • Using the XML schema, create and XML document and populate it with data about a university and its most popular professor. Use at least three universities and two professors at each university. • Write and XML style sheet to display the most popular professors at each school sorted by the professor names. Only list if the professor has over 3 years experience. You must use an if statement function.

More Related