Hello Peter,

I'm guessing you got this code from the documentation. The sample code got 
out of synch with changes to DOM Level 3. The "LS-Load" feature was 
renamed "LS" in one of the working drafts. It docs were fixed in CVS but 
not on the website. I've just updated them there [1].

Thanks.

[1] http://xml.apache.org/xerces2-j/faq-dom.html#faq-2

"Peter B. West" <[EMAIL PROTECTED]> wrote on 01/04/2005 03:55:06 AM:

> Mike,
> 
> Inching forward, I find that I have an NPE at impl.createLSParser(..), 
> below.  The "impl" returned from 
registry.getDOMImplementation("LS-Load")
> is null.  Is the setProperty call OK?
> 
>          DOMImplementationRegistry registry;
>          DOMImplementationLS impl;
>          System.setProperty(DOMImplementationRegistry.PROPERTY,
>              "org.apache.xerces.dom.DOMImplementationSourceImpl");
>          try {
>              registry = DOMImplementationRegistry.newInstance();
>              impl =
>        (DOMImplementationLS)registry.getDOMImplementation("LS-Load");
>          } catch (Exception e) {
>              throw new RuntimeException(e);
>          }
> 
>  >>      LSParser builder = impl.createLSParser(  <<
>              DOMImplementationLS.MODE_SYNCHRONOUS, null);
> 
> Peter
> 
> Michael Glavassevich wrote:
> > Hello Peter,
> > 
> > The standard distribution for Xerces 2.6.2 contains some hacked DOM 
Level 
> > 3 interfaces which allow both DOM Level 2 and 3 to co-exist. You 
should be 
> > using the DOM Level 3 distribution if you want access to DOM Level 3. 
The 
> > package containing the jars you need is called 
> > beta2-dom3-Xerces-J-bin.2.6.2.zip and is available on the download 
site 
> > and mirrors.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to