Library tutorials & articles

Simple DOM Access

Introduction

The Simple DOM Access (SDA) provide a very abstract perspective for interacting with an xml structure. The xml structure only contains elements named "node". Creating an xml structure with only node elements provides for easy search capabilities when using the selectSingleNode and selectNodes methods of the Document Object Model (DOM).

<xml>
<node parent_key="na" key="root" element_name="content" ></node>
</xml>

The secret to identifing relationships in the xml structure is maintained by the "parent_key" and "key" attributes. The "key" attribute must be a unique alpha-numeric phrase. The key is used to find any node element in the xml structure. "node" elements can be added anywhere in the xml structure by using the "parent_key" to find the parent node and appendChild the new node into the structure. Likewise, removing a node requires the "parent_key" and the "key". Attributes are associated with a particular "node" element. A "node" is retrieved using the "key" attribute filter match. An attribute is set to the "node" attribute and its value assigned. Likewise, attributes can be remove from an element. The javascript package to access methods in the Simple DOM Access is call "sda"

Comments

  1. 01 Jan 1999 at 00:00

    This thread is for discussions of Simple DOM Access.

Leave a comment

Sign in or Join us (it's free).

David Nishimoto NishiSoft provides Part I of the Information Technology Project collaboration. Sign up and list your IT project tasks, assign task too friends, and get percent complete task. Part will include a wo...

Related podcasts

  • Ajax, DWR, and Spring

    Improving the User Experience without the JavaScript hassle: Ajax, DWR, and Spring Buzzwords like AJAX (Asynchronous JavaScript And XML) and XmlHttpRequest are buzzing around Java blogs for months now. The DWR (Direct Web Remoting) project aims to provide easy AJAX for Java. This session will...

Events coming up

  • Dec 8

    December Silicon Valley Ruby Meetup

    Moffett Field, United States

    In a World of Middleware, Who Needs Monolithic Applications? by Jon Crosby With Rack emerging as the standard for composing web applications and services, most recently with Rails adoption, an architectural shift is taking place. Learn how to create next generation web services by reusing existing Rack middleware and supplementing with your own components and micro-frameworks like Sinatra. Bio : Jon likes music, the Open Web, Ruby, Erlang, Haskell, Objective-C, JavaScript and coffee.

We'd love to hear what you think! Submit ideas or give us feedback