I downloaded jaxp-1.1, and examples\DOMEcho\DOMEcho.java makes errors.
According to http://java.sun.com/xml/jaxp-1.1/docs/api/index.html,
org.w3c.dom.Node has getNodeName(), getNodeValue(), getNamespaceURI(),
getPrefix(), getLocalName() methods.
- getNodeName(), getNodeValue() are OK.
- getNamespaceURI(), getPrefix(), getLocalName() make errors. Why?
cannot resolve symbol: String val = n.getNamespaceURI();
cannot resolve symbol: val = n.getPrefix();
cannot resolve symbol: val = n.getLocalName();
-
jaxp-1.1\examples\DOMEcho\DOMEcho.java makes an error! (2 messages)
- Posted by: David Lim
- Posted on: July 16 2001 08:51 EDT
Threaded Messages (2)
- jaxp-1.1\examples\DOMEcho\DOMEcho.java makes an error! by Aditya Anand on July 16 2001 14:38 EDT
- jaxp-1.1\examples\DOMEcho\DOMEcho.java makes an error! by David Lim on July 16 2001 16:41 EDT
-
jaxp-1.1\examples\DOMEcho\DOMEcho.java makes an error![ Go to top ]
- Posted by: Aditya Anand
- Posted on: July 16 2001 14:38 EDT
- in response to David Lim
this most probably is happening due to package conflicts...
make sure you have jap.jar, crimson.jar and xalan.jar in you classpath and these should preseed j2ee.jar (if j2ee.jar is present in the class path) -
jaxp-1.1\examples\DOMEcho\DOMEcho.java makes an error![ Go to top ]
- Posted by: David Lim
- Posted on: July 16 2001 16:41 EDT
- in response to Aditya Anand
That's it!
Have a nice day...