Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Magento Australia Post eParcel Extension 1.0
Airbnb Script - Airbnb Clone 1.0.3
Hotel Restaurant Reviews and Feedback Script 1.0.3
Documenter for MySQL 1.0
ODBC Driver for xBase 1.1
ODBC Driver for FreshBooks 2.0
AnyGantt JS Gantt Charts 8.4.2
The C# Barcode Library 4.0.2.2
ConyEdit for Windows 1.1.0
wolfSSL 3.15.5
Taxi Booking App Like Uber 1.0
IP2Location Geolocation Database 2018
Food Delivery Script 1.0.3
ODBC Driver for Magento 1.3
dbForge Studio for SQL Server 5.6
Top Code
Java-2-Pseudo 1.0
Tron 3 for Microsoft Windows 3.0
MCU 8051 IDE 1.4.7
symwire 1.0
Oracle Dump Viewer 1.0.1
Convert Arabic to Roman 1.0
Free Pageant Contest Source Code 1.0
Fixed Point Radix-4 FFT 1.0
A 32 point FFT in embedded MATLAB using fixed point arithmetic 1.0
Leica image format file loader 1.0
Validation (Time) 1.1
Ajax Live Chat 0.2
Watchdog Live 6.x-1.0
Porting Manager 1.0
ClonalG selection immune algorithm 1.0
Top Rated
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
Non-recursive (and non-tracking) traversal of a (DOM) tree 
File ID: 65947






Non-recursive (and non-tracking) traversal of a (DOM) tree 
Download Non-recursive (and non-tracking) traversal of a (DOM) tree http://code.activestate.com/recipes/461776-non-recursive-and-non-tracking-traversal-of-a-dom-/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 14
Submit Rating:
Non-recursive (and non-tracking) traversal of a (DOM) tree  Description
Description: A methode to traverse a tree (or the rest of a tree starting from a node with unkown position) depth-first without recursion and without mandatorily keeping track of the position of the current node; requires each node to have reference acess to its parent, first child and next sibling, therefore especially suitable for DOM trees.

License: Freeware

Related: Algorithms

O/S:Windows

Downloads: 14



More Similar Code

This program calculates the non-destructive zoom Fast Fourier transform of a time history.

The input file must be time(sec) and amplitude(units)

Reference: Randall, Frequency Analysis, Bruel & Kjaer, page 170.



It is a systematic methodolgy to calculate in a non iterative way the infinity norm of a given Linear Invariant Control System.

Some other applications are also provided such that to plot the maximum singular value of the given Linear...



Guido illustrated the DFS recursive traversal of a graph (http://www.python.org/doc/essays/graphs.html)
However if the graph is too big, recursion error occurs.

Here im pitching in my recipe for an iterative BFS traversal.



This being a very basic program for the demonstration of bubble and dew point calculations of a ideal binary VLE mixture obeying Raoult's. The basic purpose of this program is to demonstrate VLE P-T-x-y calculations of a ideal binary mixture and...



Supervisory and low level robot tracking control of a 5-bar or articulated gantry using desired position based on video input processed in real time.

This model simulates a robot in an environment that includes a video camera source...



This piece of code takes in two infinite sequences, and, with the help of a cute math function, can cross these two together into another infinite sequence. (This is related to the diagonalization proof that the rationals are countable.) It...



This program demonstrates the creation of a sphere by performing recursive subdivisions on the faces of a tetrahedron.



The program computes the tie lines, the operating and mixing points and the number of equilibrium stages using the Hunter and Nash graphical method of a liquid-liquid extraction problem. One feed of acetic acid (35 wt %) in water which flow rate =...



A simple Windows console app that can show the RGB color values and HTML color code of a pixel under the mouse cursor when the user clicks somewhere on the screen. The results are stored as a table in a .html file, and displayed in the default web...



Process and email the data of a HTML form with no more than three lines of code.

User Review for Non-recursive (and non-tracking) traversal of a (DOM) tree
- required fields
     

Please enter text on the image