Join Joe Marini for an in-depth discussion in this video Using the hasSibling() algorithm, part of Real-World XML.
- View Offline
- Exercise Files
This real-world XML algorithm is called hasSibling and you basically use this one…to determine if a node has a sibling node that either has a name of a given…type or a specific sibling. That is, a node that exists at the same level as the…node we are interested in comparing on either side of it. So let's see how it works.…So hasSibling takes two arguments: oNode and oTestNode. So oNode is the one…that we are interested in testing against and oTestNode is either going to be a…string, which indicates a type of node that we are interested in finding, or …it could be an object, which indicates a specific instance of a node that we are looking for.…
So for example, using this function we can check to see if a paragraph has a…sibling of another type, like another paragraph or a div or something, or we can…check to see if a node has a specific sibling in mind. You might want to check…to see if a button control has an adjoining edit field, for example.…Let's take a look at how it works. We start off declaring a temporary variable…
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.