Hamilton wrote:- | | Gopal, | | The 1st suggestion failed with the same 8 errors. I was able to run the 2nd. | I'm still very puzzled over why the 1st failed.
Oops.. It's in DOM3.java ... just noticed. DOM L3 draft implementation is/was experimental and having different packaging scheme. So, you need to have jar files those incorporate DOM L3 methods. Try building "jars-dom3 or apijar-dom3 and jar-dom3". I am not sure about Xerces 2.0.2 download whether it by default having DOM L3 interfaces and implementation into jars or not either elena or Neil can confirm ? BTW, I don't think, Xerces current code base is having any DOM3.java. As current packaging is having DOM L3 in src/dom3/org/w3c/dom. Please also check your xmlParserAPIs.jar for DOM3.java. Thanks - Gopal | | Thanks, | Bill | | -----Original Message----- | From: Gopal Sharma [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, August 13, 2002 10:08 AM | To: [EMAIL PROTECTED] | Subject: Re: xerces-j | | | | Hamilton, | | try this: | | > javac -classpath .:$CLASSPATH *.java | | or create xercesSample.jar using: (Make sure, JAVA_HOME and ANT_HOME is set) | | > sh build.sh sampjar | | It shouldn't give any problem. | | Thanks | - Gopal | | | "Hamilton, Bill R" <[EMAIL PROTECTED]> wrote:- | | I just downloaded xerces-j 2.0.2 and modified my CLASSPATH. I'm trying to | compile the samples, but I'm getting errors. I've been using earlier versions | of xerces without a problem. This has me puzzled. | | | | bhamilton> echo $CLASSPATH | | | /home/bhamilton/xerces-2_0_2/xercesImpl.jar:/home/bhamilton/xerces-2_0_2/xmlPars | erAPIs.jar | | /home/bhamilton/xerces-2_0_2/samples/dom | | bhamilton> javac *.java | | lang.String) in class org.w3c.dom.DOMImplementationRegistry. | | | (DOMImplementationLS)DOMImplementationRegistry.getDOMImplementation("LS-Load"); | | | ^ | | DOM3.java:113: Method setErrorHandler(org.w3c.dom.DOMErrorHandler) not found | in interface org.w3c.dom.Document. | | doc.setErrorHandler(errorHandler); | | ^ | | DOM3.java:116: Method setNormalizationFeature(java.lang.String, boolean) not | found in interface org.w3c.dom.Document. | | doc.setNormalizationFeature("validate", true); | | ^ | | DOM3.java:119: Method setNormalizationFeature(java.lang.String, boolean) not | found in interface org.w3c.dom.Document. | | doc.setNormalizationFeature("comments", false); | | ^ | | DOM3.java:122: Method normalizeDocument() not found in interface | org.w3c.dom.Document. | | doc.normalizeDocument(); | | ^ | | DOMAddLines.java:122: Method getUserData(java.lang.String) not found in | interface org.w3c.dom.Node. | | String lineRowColumn = (String ) ((Node) node).getUserData("startLine"); | | ^ | | DOMAddLines.java:252: Method setUserData(java.lang.String, java.lang.String, | null) not found in interface org.w3c.dom.Node. | | node.setUserData( "startLine", String.valueOf( | locator.getLineNumber() ), null ); // Save location String into node | | ^ | | DOMAddLines.java:273: Method setUserData(java.lang.String, java.lang.String, | null) not found in interface org.w3c.dom.Node. | | node.setUserData( "startLine", String.valueOf( | locator.getLineNumber() ), null ); // Save location String into node | | ^ | | 8 errors | | | | | | Any thoughts? | | | | Thanks, | | Bill | | | | | --------------------------------------------------------------------- | 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]
