API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.ls. LSParser View Source
Author(s)
Since
Version
Serial
Hierarchy
 LSParser
Subinterfaces
Description
public interface LSParser
  An interface to an object that is able to build, or augment, a DOM tree from various input sources.
See also:   
Methods
Hide/Show inherited methods
public void abort ()
  Abort the loading of the document that is currently being loaded by the LSParser.
public boolean getAsync ()
true if the LSParser is asynchronous, false if it is synchronous.
public boolean getBusy ()
true if the LSParser is currently busy loading a document, otherwise false.
public DOMConfiguration getDomConfig ()
  The DOMConfiguration object used when parsing an input source.
public LSParserFilter getFilter ()
  When a filter is provided, the implementation will call out to the filter as it is constructing the DOM tree structure.
public Document parse (LSInput input) throws DOMException LSException
  Parse an XML document from a resource identified by a LSInput.
public Document parseURI (String uri) throws DOMException LSException
  Parse an XML document from a location identified by a URI reference [IETF RFC 2396].
public Node parseWithContext (LSInput input, Node contextArg, short action) throws DOMException LSException
  Parse an XML fragment from a resource identified by a LSInput and insert the content into an existing document at the position specified with the context and action arguments.
public void setFilter (LSParserFilter filter)
  When a filter is provided, the implementation will call out to the filter as it is constructing the DOM tree structure.
Fields
Hide/Show inherited fields
publicfinalstatic short ACTION_APPEND_AS_CHILDREN = "1"
  Append the result of the parse operation as children of the context node.
publicfinalstatic short ACTION_INSERT_AFTER = "4"
  Insert the result of the parse operation as the immediately following sibling of the context node.
publicfinalstatic short ACTION_INSERT_BEFORE = "3"
  Insert the result of the parse operation as the immediately preceding sibling of the context node.
publicfinalstatic short ACTION_REPLACE = "5"
  Replace the context node with the result of the parse operation.
publicfinalstatic short ACTION_REPLACE_CHILDREN = "2"
  Replace all the children of the context node with the result of the parse operation.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar