2011-08-16 23 views

回答

1

這是javax.xml.xpath.XPath,請試試。

+0

所有我的.xml後得到的。是解析器或XMLConstants。 – cricki

+0

檢查你的項目構建路徑 - 這個接口應該由jre提供 – Bozho

0

如果您使用Eclipse和Mac,添加您的對象(即使您靜態使用它們),然後點擊Cmd + Shift + O(== Organize Imports)。 Windows是Ctrl + Shift + O。這將添加任何缺少的導入語句。
如果你缺少的XPath,你可以從這些來源之一下載JAR:
apache.org
或者download the latest stable build here

+0

我知道如何自動添加一條import語句。我正在使用IntelliJ。我沒有可用的xpath。 – cricki

+0

請參閱上面的修改。 –