Duration: 16 minutes
Summary: In this video, we are continuing our discussion of XML. In previous videos we already talked about reading and writing XML files. Here, we are concentrating on defining the structure of an XML file and being able to validate an XML file. To do that, we are introducing DTD and XSD. We can create a DTD inside and XML file and externally. I will show you how to create an external DTD and link to it from within the XML file. The DTD will define the structure of the Books.xml file by specifying the 'books' root node and 'book' node. Within the book node, we will have isbn, title, author, and comments. Also, we will see how we can generate an XSD schema for Books.xml. When you have a choice, it is better to use an XSD than a DTD because an XSD is strongly typed.