Link Search Menu Expand Document

XML Schema

  • Lesson title: XML Schema
  • Keywords: XML, XML schema, XML validation
  • Objective/Description: In this lesson we will present XML Schema XSD, which allows to formally describe XML elements and makes it possible to verify XML documents beyond the capabilities offered by DTDs
  • Learning outcomes:
    • Explaining how an XML Schema adds value to XML formatting
    • Explaining the different elements of XML formatting using XML Schema
    • Analyzing XML data with the help of XML schema for the purpose of XML data validation
    • Assembling data in XML formats and shape the appropriate XML Schema
    • Judging the limitations of XML Schema for the representation of data

Resources

Questions and answers

These Q&A aim to validate a basic understanding of concepts discussed during the lecture. The use of such concepts is beyond the scope of this Q&Astudy set as it is addressed via projects and hands-on for those enrolled in the corresponding university course.

Why do we need XML schema?

XML schema (XSD) allow us to manage more complex data in XML.
It validates not only tags and order (as DTD does) but can also validate content.

What sort of things can you validate with XSD?

Type of an attribute (simple types).
Default value of an attribute.
Mandatory, optional, alternate elements.
Length restrictions
Paterns via RegEx can be used for validation
Nested elements (complex types).

What is a simple type?

Strings, numbers, dates, booleans.
XSD validation can refer to ennumerations of the types above.

'XML Schema' 'XML, XML schema, XML validation' 'In this lesson we will present XML Schema XSD, which allows to formally describe XML elements and makes it possible to verify XML documents beyond the capabilities offered by DTDs' - '"Explaining how an XML Schema adds value to XML formatting"' - '"Explaining the different elements of XML formatting using XML Schema"' - '"Analyzing XML data with the help of XML schema for the purpose of XML data validation"' - '"Assembling data in XML formats and shape the appropriate XML Schema"' - '"Judging the limitations of XML Schema for the representation of data"'

Follow us on twitter @ZB_MED