In 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
Thanks for sharing, im waiting for the next one.
You’re very welcome. Part 7 is up and I think it is the best of the series
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..
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.
Thanks for making it clear.. I understood after I watched video 7.. anyways thanks for clearing..
I’m always happy to help 🙂