See Also: ILSParser Members
An interface to an object that is able to build, or augment, a DOM tree from various input sources.
LSParser provides an API for parsing XML and building the corresponding DOM document structure. A LSParser instance can be obtained by invoking the DOMImplementationLS.createLSParser() method.
As specified in  , when a document is first made available via the LSParser:
Asynchronous LSParser objects are expected to also implement the events::EventTarget interface so that event listeners can be registered on asynchronous LSParser objects.
Events supported by asynchronous LSParser objects are:
Note: All events defined in this specification use the namespace URI "http://www.w3.org/2002/DOMLS".
While parsing an input source, errors are reported to the application through the error handler (LSParser.domConfig's "" parameter). This specification does in no way try to define all possible errors that can occur while parsing XML, or any other markup, but some common error cases are defined. The types (DOMError.type) of errors and warnings defined by this specification are:
<!DOCTYPE root [ <!ENTITY e SYSTEM 'subdir/myentity.ent' ]> <root> &e; </root>
<one> <two/> </one> <?pi 3.14159?> <more/>
In addition to raising the defined errors and warnings, implementations are expected to raise implementation specific errors and warnings for any other error and warning cases such as IO errors (file not found, permission denied,...), XML well-formedness errors, and so on.
See also the .