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"

You might also like...

Comments

About the author

David Nishimoto United States

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 ...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only two kinds of languages: the ones people complain about and the ones nobody uses” - Bjarne Stroustrup