Join Joe Marini for an in-depth discussion in this video Building a DTD for a business card, part of XML Essential Training.
- [Instructor] Okay, let's build a DTD…for our business card.…So in Visual Studio Code, or whatever editor you're using,…go ahead and open the businesscard.xml file…here in Chapter Eight.…You can see in the file that I've already added…the placeholder for where the DTD will be defined.…In this first exercise,…we'll include the document type…just directly here in the XML file.…In the next video,…we'll see how to associate an external DTD…with our XML file.…So let's add the code to define our elements.…
First, I'll define the root business card element,…and I'll do that by typing angle bracket,…and then exclamation point,…and then the keyword ELEMENT.…And the first element is BusinessCard.…And business card elements can contain…name, followed by phone tags,…and there's got to be one or more of those,…so I'll use the plus,…and then email.…And I'm going to put the question mark after email,…and then I'm going to close the element declaration.…
So this says that the business card element…can contain other elements, in this case,…
- What is XML?
- Advantages and drawbacks of XML
- Proper XML syntax
- Working with XML namespaces
- Styling XML tags
- Discovering and creating document content
- Manipulating XML content using XPath and XSLT
- Document type definitions and XML schema
Skill Level Beginner
Learn API Documentation with JSON and XMLwith Peter Gruenbaum1h 18m Intermediate
1. Getting Started
2. XML Overview
3. Working with XML
4. Manipulating XML with the DOM
5. XML and XPath
6. XML and XSLT
7. XSLT Examples
8. Document Type Definitions
9. XML Schema
Next steps1m 4s
- 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.