| XML Database Page | |||||||||||||||||||||||||||||||||||||
| 1. The Introduction to XML - What is XML? XML is a makeup language for documents containing structured information. - XML&HTML In HTML, both the tag semantics and the tag set are fixed. XML specifies neither semantics nor a tag set and provides a define tags and sructural relationships between them. |
|||||||||||||||||||||||||||||||||||||
| 2. My XML files | |||||||||||||||||||||||||||||||||||||
| course.xml | |||||||||||||||||||||||||||||||||||||
| student.xml | |||||||||||||||||||||||||||||||||||||
| 3. The stylesheet of the XML files | |||||||||||||||||||||||||||||||||||||
| The CSS style | The XSL style | ||||||||||||||||||||||||||||||||||||
| 4. Queries in XML files | |||||||||||||||||||||||||||||||||||||
| XPath Queries Example: | |||||||||||||||||||||||||||||||||||||
| Display all the record | |||||||||||||||||||||||||||||||||||||
| Display the students' name | |||||||||||||||||||||||||||||||||||||
| Display the major | |||||||||||||||||||||||||||||||||||||
| Display the students in MIS major | |||||||||||||||||||||||||||||||||||||
| Display the students GPA > 3.0 | |||||||||||||||||||||||||||||||||||||
| Use other ways to query the XML files: | |||||||||||||||||||||||||||||||||||||
| search by name | |||||||||||||||||||||||||||||||||||||
| search by major | |||||||||||||||||||||||||||||||||||||
| search the GPA you need | |||||||||||||||||||||||||||||||||||||
| search the courses took by student | |||||||||||||||||||||||||||||||||||||
| search by CRN | |||||||||||||||||||||||||||||||||||||
| search by course name | |||||||||||||||||||||||||||||||||||||
| search by department | |||||||||||||||||||||||||||||||||||||