EventProducerpublic class DOMEventProducer extends java.lang.Object implements EventProducer
| Constructor | Description | 
|---|---|
DOMEventProducer() | 
 Creates a new DOMEventProducer 
 | 
DOMEventProducer(org.w3c.dom.Node node) | 
 Creates a new DOMEventProducer for the given Node 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
static void | 
process(org.w3c.dom.Document document,
       org.xml.sax.DocumentHandler handler) | 
 Walks the given DOM Document and converts it into it's corresponding
 SAX events 
 | 
static void | 
process(org.w3c.dom.Node node,
       org.xml.sax.DocumentHandler handler) | 
 Breaks down the given node into it's corresponding SAX events 
 | 
void | 
setDocumentHandler(org.xml.sax.DocumentHandler handler) | 
 Sets the DocumentHandler to use when firing events 
 | 
void | 
setNode(org.w3c.dom.Node node) | 
 Sets the node which is to be converted into SAX events 
 | 
void | 
start() | 
 Starts producing the events for the Node which is to be
 converted into SAX events 
 | 
public DOMEventProducer()
public DOMEventProducer(org.w3c.dom.Node node)
node - the node to create the DOMEventProducer for.public void setDocumentHandler(org.xml.sax.DocumentHandler handler)
setDocumentHandler in interface EventProducerpublic void setNode(org.w3c.dom.Node node)
node - the node which is to be converted into SAX eventspublic void start()
           throws org.xml.sax.SAXException
start in interface EventProducerorg.xml.sax.SAXExceptionpublic static void process(org.w3c.dom.Document document,
                           org.xml.sax.DocumentHandler handler)
                    throws org.xml.sax.SAXException
document - the Node to process into SAX eventshandler - the DocumentHandler to send events toorg.xml.sax.SAXExceptionpublic static void process(org.w3c.dom.Node node,
                           org.xml.sax.DocumentHandler handler)
                    throws org.xml.sax.SAXException
node - the Node to process into SAX eventshandler - the DocumentHandler to send events toorg.xml.sax.SAXExceptionIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com