When I type: import javax.xml.
all that I have got available is:
javax.xml.parsers javax.xml.XMLConstants
I need javax.xml.XPath Wha开发者_运维问答t do I need to do?
It's javax.xml.xpath.XPath
, try that instead.
If you are using Eclipse and a Mac, add your objects (even if you use them statically) and then hit Cmd + Shift + O ( == Organize Imports ). Windows is Ctrl + Shift + O. This will add any missing import statements.
If you are missing XPath, you can download the Jar from one of these sources:
apache.org
Or download the latest stable build here
精彩评论