Provides an implementation-independent
API for parsing XML documents to produce a DOM
Document
object.
Instances are built by the
createLSParser()
method in DOMImplementationLS
.
Java Binding:
package org.w3c.dom.ls;
public interface LSParser {
public DOMConfiguration getDomConfig();
public LSParserFilter getFilter();
public void setFilter(LSParserFilter filter);
public boolean getAsync();
public boolean getBusy();
public Document parse(LSInput input) throws DOMException, LSException;
public Document parseURI(String uri) throws DOMException, LSException;
// ACTION_TYPES
public static final short ACTION_APPEND_AS_CHILDREN = 1;
public static final short ACTION_REPLACE_CHILDREN = 2;
public static final short ACTION_INSERT_BEFORE = 3;
public static final short ACTION_INSERT_AFTER = 4;
public static final short ACTION_REPLACE = 5;
public Node parseWithContext(LSInput input, Node contextArg, short action)
throws DOMException, LSException;
public void abort();
}