## org.autoplot.spase.DOMWalker

## DOMWalker( org.w3c.dom.traversal.TreeWalker walker )

Create a TreeModel for the specified TreeWalker

## DOMWalker( org.w3c.dom.Document document )

Create a TreeModel for a TreeWalker that returns all nodes in the specified document

## DOMWalker( org.w3c.dom.Element element )

Create a TreeModel for a TreeWalker that returns the specified element and all of its descendant nodes.

## getAttributes

getAttributes( org.w3c.dom.Node node ) → java.util.Map

### Parameters

node - a Node

### Returns:

java.util.Map
[search for examples] [view on GitHub] [view on old javadoc]

## getChild

getChild( Object parent, int index ) → Object

### Parameters

parent - an Object
index - an int

### Returns:

java.lang.Object
[search for examples] [view on GitHub] [view on old javadoc]

## getChildCount

getChildCount( Object node ) → int

### Parameters

node - an Object

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc]

## getIndexOfChild

getIndexOfChild( Object parent, Object child ) → int

### Parameters

parent - an Object
child - an Object

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc]

## getRoot

getRoot( ) → org.w3c.dom.Node

### Returns:

org.w3c.dom.Node
[search for examples] [view on GitHub] [view on old javadoc]

## main

main( String[] args ) → void

This main() method demonstrates the use of this class, the use of the Xerces DOM parser, and the creation of a DOM Level 2 TreeWalker object.

### Parameters

args - a java.lang.String[]

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc]