I was just informed that this bug was fixed, and that to get the fix you
have to check out 
the current version of Xerces out of CVS.

-----Original Message-----
From: Shustef, Eugene [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2001 9:36 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Cannot resolve Document.importNode


Actually I wouldn't recommend using importNode with Xerces 1.3. If you have
any attributes on the nodes you are trying to import, their values will
be wiped out during the import. This bug has been recently reported.

-----Original Message-----
From: Ian Roberts [mailto:[EMAIL PROTECTED]
Sent: Friday, March 02, 2001 4:05 AM
To: [EMAIL PROTECTED]
Subject: Re: Cannot resolve Document.importNode


On Thu, 1 Mar 2001, Alan Crocker wrote:

> I'm using Xerces-1.3.0 on Windows 2000 with JDK 1.3.0.
> 
> I cannot use org.w3c.dom.Document.importNode. It's in the API doc and it's
> in the source, but the Java compiler cannot resolve it. Here's some sample
> code:

[snip]

> I also cannot use some other methods such as getElementsByTagNameNS which
> are marked as DOM Level 2 in the API Doc. What's wrong? Shouldn't I be
able
> to use these methods?
> 
> Any help would be appreciated.
> Thanks,

It looks like you've got another version of the DOM interfaces in your
classpath before the Xerces ones.  Try putting xerces.jar as the first
entry in your classpath and see if that helps.

Ian

-- 
Ian Roberts, Software Engineer        DecisionSoft Ltd.
tel: +44-1865-203192                  http://www.decisionsoft.com


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

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

Reply via email to