R
Richard Saville
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!
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!