|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The application implements this interface in order to control the mixed SAX 1.0 - DOM Level 1 parsing.
The com.devsphere.xml.saxdomix.SDXOldBuilder class of the
framework provides the mixed SAX 1.0 - DOM Level 1 parsing functionality.
SDXOldBuilder| Method Summary | |
void |
handleDOM(org.w3c.dom.Element element)
Receives the DOM sub-trees for handling. |
boolean |
wantDOM(java.lang.String name,
org.xml.sax.AttributeList attributes)
Returns true when the application wants to receive
a DOM sub-tree for handling. |
| Method Detail |
public boolean wantDOM(java.lang.String name,
org.xml.sax.AttributeList attributes)
throws org.xml.sax.SAXException
true when the application wants to receive
a DOM sub-tree for handling.
During the SAX parsing, a builder object invokes the controller's
wantDOM() method for each startElement()
parsing event. If wantDOM() returns false
the SAX parsing mode continues. When wantDOM() returns
true the builder enters in DOM parsing mode and starts
creating a DOM sub-tree from all SAX events between the current
startElement() and the corresponding
endElement().
name - The element's nameattributes - The element's attributes
org.xml.sax.SAXException - If an error must be signaled
public void handleDOM(org.w3c.dom.Element element)
throws org.xml.sax.SAXException
After wantDOM() returns true, the builder
constructs a DOM sub-tree from SAX events and passes it to the
controller's handleDOM() method. After handling, the builder
returns to the SAX parsing mode.
element - The root of the DOM sub-tree
org.xml.sax.SAXException - If an error must be signaled
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||