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
Paste phpSoftPro 1.4.1
Bytescout PDF SDK 1.8.1.243
Odoo Crafito Theme 1.0
Uber Clone- Taxi Booking App 4.1
Excel Add-in for BigCommerce 1.7
Online Food Delivery Script php 1.0.3
Break Script | Youtube Clone Script 1.0.3
Advanced Content Manager Magento 2 extension 2.2.x
dbForge Studio for PostgreSQL 1.0
ODBC Driver for Salesforce MC 1.3
Social Media Script 1.0
ByteScout PDF Renderer SDK 9.0.0.3079
Magento Mobile App Builder 2.0.0
Binary MLM Plan 1.0.2
Review Assistant 4.0
Top Code
Online Food Delivery Script php 1.0.3
Simplified Gradient Descent Optimization 1.0
Gradient Descent Visualization 1.0
Planyo online reservation system module 6.x-1.8
Phase Locked Loop Synthesis and Simulation 1.0
Issue Manager App 1.0
Ecuaciones Lineales 1.0
Taxi - movement of bacteria to the food 1.0
Student Information Management System 1.0
Memory (a.k.a. Concentration) 1.0
Savsoft Quiz - Online Quiz Management System 1.0
Frequent Itemset Searching in Data Mining 1.0
Liquid Frog - Free Kiss Gallery 1.0
Aspose.OCR for .NET 1.4.0.0
Java-2-Pseudo 1.0
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
PHP Point of sale 10.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
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