Logo

Design an XML document to store “flight ticket booking information”, including fields such as Booking ID, passenger name (first name, middle name,…

BCA Web Technology · 2026 · Solved Question with Answer

Design an XML document to store “flight ticket booking information”, including fields such as Booking ID, passenger name (first name, middle name, last name), flight number, departure city, destination city, travel date, ticket class, and total baggage. Also, write XML Schema (XSD) code to validate the structure of this data with the following rules:

a. Flight number must follow the pattern: one uppercase alphabet followed by three digits (e.g., A123).

b. Total baggage must be restricted to a value between 15 kg and 25 kg.

Solution

Please login to view the answer.