public class DOM2toSAX2
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.xml.sax.ContentHandler |
handler |
| Constructor and Description |
|---|
DOM2toSAX2() |
| Modifier and Type | Method and Description |
|---|---|
protected org.xml.sax.Attributes |
convertAttributes(org.w3c.dom.Element e)
converts DOM attributes into SAX attributes.
|
org.xml.sax.ContentHandler |
getContentHandler() |
protected void |
onElement(org.w3c.dom.Element e) |
protected void |
onText(org.w3c.dom.Text t) |
void |
setContentHandler(org.xml.sax.ContentHandler handler) |
void |
traverse(org.w3c.dom.Document dom) |
public void setContentHandler(org.xml.sax.ContentHandler handler)
public org.xml.sax.ContentHandler getContentHandler()
public void traverse(org.w3c.dom.Document dom)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected org.xml.sax.Attributes convertAttributes(org.w3c.dom.Element e)
protected void onElement(org.w3c.dom.Element e)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionprotected void onText(org.w3c.dom.Text t)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionMSV