XML Schema Definition (XSD) specifies XML structure and rules, giving prompts a standardized format for generating structured test data. section 6.2.1
Using XSD in data-generation prompts provides:
- Ready-made definitions for names, types, required elements, and constraints. section 6.2.1
- A commonly adopted format that improves the likelihood of useful model output. section 6.2.1
- A shared artifact that can support testing when teams already define XML structures with XSD. section 6.2.1
Room data
An XSD schema can require elements such as accessible, description, type, features, image, roomNumber, and roomPrice, while restricting type values to Single, Double, Twin, Family, or Suite. XML instances then provide concrete room records for checking against those rules.
