Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
can not get selectSingleNode to compile
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Richard Saville, post: 597409"] I am trying to use the XPath method selectSingleNode but the compiler gives the error "cannot find symbol". I have the following imports: import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.*; These line compile and execute: oRoot = doc.getDocumentElement(); oNode = oRoot.getFirstChild(); These lines will not compile: oNode = selectSingleNode( oRoot, "memberID"); oNode = oRoot.selectSingleNode( oRoot, "memberID"); I have tried using various imports that have xPath but the compiler always says "does not exist" import weblogic.apache.xpath; import org.jdom.xpath.*; I'm sure I am missing something basic here. Please help! [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
can not get selectSingleNode to compile
Top