Join Joe Marini for an in-depth discussion in this video Exercise: Declaring a DTD for our BusinessCard XML file, part of XML Essential Training (2014).
…In this example, we're going to build a DTD for our business card.…So here in Aptana Studio or whatever editor you're using, go ahead and open…up the ExampleSnippets.txt file and scroll down…to Chapter nine, for Document Type Definitions.…In the folder for the Chapter…nine example, open up the businesscard.xml file.…All right, here's where we're going to define our document type definition.…So, let's go ahead and, in the business card…we're going to type angle bracket DOCTYPE Business Card, and…then and then an opening square bracket and we're…going to hit return, and do a closing square bracket.…
Okay, that's where we're going to put the inline definition of the DTD.…And so, for the first exercise, we'll include the document type…just directly here in the file, and then we'll see…how to associate an external DTD with our XML file.…So let's save, let's go to the snippets, and…let's copy the first line here from business card.…And up here in the document type, let's go ahead and paste that in.…So you can see that now I'm declaring an element, and…
- What is XML?
- The advantages and drawbacks of XML
- Proper XML syntax
- Working with namespaces
- Styling XML tags with CSS
- Extracting and manipulating data
- Taking XPath and XSLT for a spin
- Creating document type definitions and schema definitions
Skill Level Beginner
1. Getting Started
2. How Developers Use XML
Real-world examples of XML6m 21s
3. Basic Rules of XML
4. Starting to Work with XML
5. Using the DOM to Manipulate XML
6. XML and XPath
7. XML and XSLT
8. XSLT Examples
9. Creating Document Type Definitions (DTDs)
10. Creating XML Schema Definitions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.