|
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 2.0 - DOM Level 2 parsing.
The com.devsphere.xml.saxdomix.SDXBuilder
and com.devsphere.xml.saxdomix.SDXBuilderT classes of the
framework provide the mixed SAX 2.0 - DOM Level 2 parsing functionality.
SDXBuilder,
SDXBuilderT| Method Summary | |
void |
handleDOM(org.w3c.dom.Element element)
Receives the DOM sub-trees for handling. |
boolean |
wantDOM(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
Returns true when the application wants to receive
a DOM sub-tree for handling. |
| Method Detail |
public boolean wantDOM(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes 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().
namespaceURI - The element's namespace URIlocalName - The element's local namequalifiedName - The element's qualified 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 | |||||||||