Join Joe Marini for an in-depth discussion in this video Creating new document content, part of XML Essential Training.
…So far we've seen how to use the DOM…API to discover and extract and lightly manipulate document content.…And in this example, we're going to see how…to use the DOM to create new document content.…So, in the Example Snippets file, scroll down to the Creating New Document Content section.…And open up DOMExample3_start.htm.…Of course, as always, you can jump ahead to the finished version if you…want to just see how everything works, but we're going to build the example here.…
A couple of things I want you to notice.…First, I've started the file off by including…some script code that should be familiar by now.…So we're getting an element id for the XML data which is down here.…And I'm calling getElementsByTagName to get the BusinessCard.…We've done this in the previous examples so far.…We're going to fill out this function called createBizCards, which is…right here, which is what gets called when the document loads.…Other thing that I want you to notice is down…here in the XML section, I've made a slight adjustment.…
- 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.