XML Video Tutorial 6

XML Schema Video TutorialIn part 1 of my XML Schema video tutorial I introduce you to XML schema files. This of course is a continuation of my XML Video Tutorial.

I talk about schemas, namespaces, the different data types available, how to restrict the data, enumerations and much more.

I thought it would be best to break up this sometimes confusing subject. Use the code below to better understand what I’m doing.

If you like videos like this tell Google [googleplusone]

Sharing is always great [nttfblike]

Code from the Video

XML Schema File

XML File Created from XML Schema File

6 thoughts on “XML Video Tutorial 6”

  1. Hi Mr. Derek,

    I didn’t understand the purpose of
    xs:schema xmlns:xs=”http://www.w3.org/2001/XMLSchema”
    namespace and xmlns:nttbp=”http://www.example.org/baseballplayer2″

    what exactly is the difference between them.. can you explain me clearly..

    1. Hi,

      xs:schema xmlns:xs=… declares which URL is assigned to all of the elements and data types to use for this document. It also states that xs: will be used to separate from other namespace elements. It allows us to keep are element names distinct from the rest.

      xmlns:nttbp=… defines my personal default namespace and the prefix. This makes sure that my element names are distinct from others.

      I hope that helps.

Leave a Reply

Your email address will not be published. Required fields are marked *