February 2019
Intermediate to advanced
626 pages
15h 51m
English
An XML schema can be used to describe and constrain the elements, attributes, and values within an XML document.
XML schema definitions are saved with an XSD extension. Schema files can be used to validate the content of an XML file.
The following is a simple schema that validates the item namespace:
<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://namespaces/item" xmlns="https://www.w3schools.com" elementFormDefault="qualified"> <xs:element name="rootElement"> <xs:element name="child" ...
Read now
Unlock full access