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
