Project 1

cscie259.project1.mf
Class DOMBuilder

java.lang.Object
  extended bycscie259.project1.mf.DefaultHandler
      extended bycscie259.project1.mf.DOMBuilder
All Implemented Interfaces:
ContentHandler

public class DOMBuilder
extends DefaultHandler

A simplified version of org.apache.xml.utils.DOMBuilder. A DOMBuilder is a ContentHandler that builds a DOM out of SAX events. You MAY modify this file to whatever extent you see fit. However, you MUST complete the implementation of getDocument so that it returns a node of type DOCUMENT_NODE whose descendants represent the contents encountered by the XML parser. Those descendants should be of type ELEMENT_NODE, ATTRIBUTE_NODE, and/or TEXT_NODE. And, clearly, you MUST augment this class's implementation so that it actually handles SAX events and builds a DOM.

Version:
6.0
Author:
Computer Science E-259, YOUR NAME GOES HERE

Constructor Summary
DOMBuilder()
           
 
Method Summary
 Document getDocument()
          Returns document's topmost node (i.e., its sole Document node).
 
Methods inherited from class cscie259.project1.mf.DefaultHandler
characters, endDocument, endElement, startDocument, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMBuilder

public DOMBuilder()
Method Detail

getDocument

public Document getDocument()
Returns document's topmost node (i.e., its sole Document node).

Returns:
document's topmost node

Project 1