Class analyse

java.lang.Object
  |
  +--analyse

public class analyse
extends java.lang.Object

This class provides static methods to analyse and display a DOM structure of an XML Document

Version:
1.0
Author:
Udo Altmann

Constructor Summary
analyse()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static java.lang.String nodeTypeToString(short s)
          Static method to convert Nodetypes to Strings
static void process(org.w3c.dom.Node nd)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

analyse

public analyse()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Parameters:
args - File to be analysed
Throws:
java.io.IOException
org.xml.sax.SAXException

process

public static void process(org.w3c.dom.Node nd)
Parameters:
nd - Node to be analysed. Child nodes are processed recursively

nodeTypeToString

public static java.lang.String nodeTypeToString(short s)
Static method to convert Nodetypes to Strings

Parameters:
s - Type as short
Returns:
Type as String