Join Joe Marini for an in-depth discussion in this video Using the isContainedBy() algorithm, part of Real-World XML.
- View Offline
- Exercise Files
Another really useful DOM algorithm is the isContainedBy function, which…determines if a node is contained within another node and this is another…example that happens all the time in real-world DOM usage.…The way the algorithm works, the isContainedBy function is given two…parameters. The first parameter is the node that we want to see if it is…contained within somewhere and the TestNode is either a specific instance of a…node that we want to see if it's the container or is a string that…illustrates the name of a type of node that we want to see if it contains …the first argument.…
For example, we could pass in an instance of a node here and then for oTestNode…we can give it a string like body or div and this function will return true if…the first argument is contained within the node of that type. Or we can pass it…a specific instance of a node in which case, the function will return true if…the first argument was contained within the specific nodes specified by …the second argument.…So the way it works is, regardless of whether we are testing for strings or…
XML Essential Training is a prerequisite for getting the most out of this course.
- Understanding the Sitemap index format
- Integrating XML and design
- Using XML effectively in Firefox and Internet Explorer
- Avoiding common design mistakes
- Understanding and implementing DOM algorithms
- Building an XML tag set
- Using XML with RSS and Atom
- Processing XML data with XSLT
Skill Level Intermediate
ActionScript 3.0: Working with XMLwith Todd Perkins2h 27m Intermediate
InDesign CS5: Dynamic Publishing Workflows in XMLwith Jim Maivald3h 33m Intermediate
1. The XML Landscape
2. Real-World XML Formats
Enriching the RSS feed7m 48s
4. Designing and Implementing an XML Format
5. Real-World DOM Algorithms
- 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.