Provides an implementation-independent
API for parsing XML documents to produce a DOM
Document
object.
Instances are built by the
createDOMBuilder()
method in DOMImplementationLS
.
IDL:
Java Binding:
package org.w3c.dom.ls;
public interface DOMBuilder {
public DOMEntityResolver getEntityResolver();
public void setEntityResolver(DOMEntityResolver entityResolver);
public DOMErrorHandler getErrorHandler();
public void setErrorHandler(DOMErrorHandler errorHandler);
public DOMBuilderFilter getFilter();
public void setFilter(DOMBuilderFilter filter);
public void setFeature(String name, boolean state)
throws DOMException;
public boolean canSetFeature(String name, boolean state);
public boolean getFeature(String name)
throws DOMException;
public Document parseURI(String uri) throws Exception;
public Document parse(DOMInputSource is) throws Exception;
// ACTION_TYPES
public static final short ACTION_REPLACE = 1;
public static final short ACTION_APPEND = 2;
public static final short ACTION_INSERT_AFTER = 3;
public static final short ACTION_INSERT_BEFORE = 4;
public void parseWithContext(DOMInputSource is,
Node contextNode, short action) throws DOMException;
}
interface DOMBuilder {
attribute DOMEntityResolver entityResolver;
attribute DOMErrorHandler errorHandler;
attribute DOMBuilderFilter filter;
void setFeature(in DOMString name, in boolean state)
raises(DOMException);
boolean canSetFeature(in DOMString name, in boolean state);
boolean getFeature(in DOMString name) raises(DOMException);
Document parseURI(in DOMString uri) raises(DOMSystemException);
Document parse(in DOMInputSource is) raises(DOMSystemException);
// ACTION_TYPES
const unsigned short ACTION_REPLACE = 1;
const unsigned short ACTION_APPEND = 2;
const unsigned short ACTION_INSERT_AFTER = 3;
const unsigned short ACTION_INSERT_BEFORE = 4;
void parseWithContext(in DOMInputSource is, in Node cnode,
in unsigned short action) raises(DOMException);
};