Join Joe Marini for an in-depth discussion in this video Proper XML syntax, part of XML Essential Training.
- [Instructor] XML syntax is a little more strict…than what you might be used to if you're…used to working with HTML.…So let's cover the basic rules of XML syntax here.…First, XML documents must have a single root tag.…They have to have one, it's required,…and if you remember back to the business card example,…the business card tag was the root tag…in that particular document.…XML documents also must be what's called well-formed.…In other words, there are certain syntax rules…that XML documents have to adhere to.…The first one is that empty tags have to be closed…with a slash before the closing angle bracket.…
Now, this is different than HTML, for example,…where image tags are empty,…but they don't have that trailing slash,…and the reason is because the browser knows what HTML is,…it knows there's a tag called IMG,…and it knows that it's empty.…In XML, however, remember, you get to make up your own tags,…and the program that's parsing the XML…may not know what a particular tag is or what it means,…so you have to indicate that a particular tag is empty…
- 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
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.