Question 1
Topic: Section 1 - XML Overview
Skill tested: Distinguishes XML structural validation from application-level processing technologies.
A data-integration team receives XML purchase orders from several suppliers. The receiving system must check whether each document follows a shared structural contract before passing accepted data to business processing. The team is comparing technologies that operate at different layers: some define document structure, while others query, transform, or expose document nodes to programs. The solution must validate permitted elements, attributes, and their relationships without writing a custom parser. Which technology is the most appropriate foundation for defining and checking this structural contract?
XML Schema is a schema definition language: it declares allowed elements, attributes, content models, and data types, and an XML validator can assess instances against those declarations. XPath selects nodes, but it does not define a complete structural contract. DOM provides an application-facing tree model rather than validation rules. XSLT transforms XML; templates do not, by themselves, establish schema validity.